This commit is contained in:
手瓜一十雪
2024-09-28 15:36:25 +08:00
parent 1ce8cd2100
commit 9bef9c85cf
3 changed files with 70 additions and 18 deletions

View File

@@ -29,7 +29,6 @@ import { InitWebUi } from '@/webui';
import { WebUiDataRuntime } from '@/webui/src/helper/Data';
import { napCatVersion } from '@/common/version';
import { NodeIO3MiscListener } from '@/core/listeners/NodeIO3MiscListener';
import { Native } from '@/native';
program.option('-q, --qq [number]', 'QQ号').parse(process.argv);
const cmdOptions = program.opts();
@@ -55,12 +54,6 @@ export async function NCoreInitShell() {
const loginService = wrapper.NodeIKernelLoginService.get();
const session = wrapper.NodeIQQNTWrapperSession.create();
let appNative = new Native(pathWrapper.binaryPath);
appNative.MoeHooExport.exports.registMsgPush((...args: any[]) => {
console.log(args);
});
console.log(appNative);
// from get dataPath
const [dataPath, dataPathGlobal] = (() => {
if (os.platform() === 'darwin') {