mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-10 02:09:46 +08:00
feat: 新增导入导出功能,支持备份和恢复 PATH 配置
- 添加 import_export 模块,实现 JSON 格式的导入导出 - 在界面中添加导入和导出按钮,并配置回调函数 - 更新配置文件,增加相关文本和状态提示 - 在非管理员权限下禁用导入按钮
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#ifndef IMPORT_EXPORT_H
|
||||
#define IMPORT_EXPORT_H
|
||||
|
||||
#include "utils/string_ext.h"
|
||||
|
||||
#define EXPORT_VERSION "1.0"
|
||||
|
||||
// 导出 PATH 到文件
|
||||
int export_paths_to_file(const StringList *list, const char *filepath, int is_system);
|
||||
|
||||
// 从文件导入 PATH
|
||||
int import_paths_from_file(const char *filepath, StringList *list);
|
||||
|
||||
#endif // IMPORT_EXPORT_H
|
||||
Reference in New Issue
Block a user