"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const App = CS.FairyEditor.App; const cfgPath = `${App.pluginManager.basePath}/xgame-ext/Config.json`; class Config { /**psd2fgui的插件路径,该插件依赖的npm库比较大,单独保存*/ psd2fguiPluginsPath; /**依赖信息清单路径*/ dependencyManifestPath; wirte() { let config = JSON.stringify(this); CS.System.IO.File.WriteAllText(cfgPath, config); } static load() { if (CS.System.IO.File.Exists(cfgPath) == false) { return null; } let text = CS.System.IO.File.ReadAllText(cfgPath); return JSON.parse(text); } } exports.default = Config;