feat: FrameWork调整
This commit is contained in:
1 parent
34d4358bfc
commit
652fe8d21e
3 files changed
+11
-3
No files matched your search
@@ -23,7 +23,14 @@ export async function NCoreInitFramework(
|
||||
) {
|
||||
//在进入本层前是否登录未进行判断
|
||||
console.log('NapCat Framework App Loading...');
|
||||
const pathWrapper = new NapCatPathWrapper();
|
||||
let dataPath: string | undefined;
|
||||
try {
|
||||
dataPath = (global as any).LiteLoader.plugins['NapCatQQ'].path.data;
|
||||
} catch (error) {
|
||||
dataPath = undefined;
|
||||
}
|
||||
|
||||
const pathWrapper = new NapCatPathWrapper(dataPath);
|
||||
const logger = new LogWrapper(pathWrapper.logsPath);
|
||||
const basicInfoWrapper = new QQBasicInfoWrapper({ logger });
|
||||
const wrapper = loadQQWrapper(basicInfoWrapper.getFullQQVesion());
|
||||
|
||||
Reference in new issue
Block a user