From 8a32093e5b328d96cf1c40c295261a6dbaf98efc Mon Sep 17 00:00:00 2001 From: nekosu Date: Wed, 1 Nov 2023 15:53:56 +0800 Subject: [PATCH] feat: update proto --- app/main/src/components/maafw/index.ts | 8 ++++---- pkgs/loader | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/main/src/components/maafw/index.ts b/app/main/src/components/maafw/index.ts index 761765f..6f8ad6c 100644 --- a/app/main/src/components/maafw/index.ts +++ b/app/main/src/components/maafw/index.ts @@ -1,6 +1,6 @@ -import { FlatToStream, context, deinit, init, set_debug_mode, set_logging } from '@maa/loader' +import { FlatToStream, context, deinit, init, set_log_dir, set_save_draw } from '@maa/loader' import { logger } from '@maa/logger' -import { ShallowRef, shallowRef } from '@vue/reactivity' +import { shallowRef } from '@vue/reactivity' import { ChildProcess, spawn } from 'child_process' import path from 'path' @@ -119,8 +119,8 @@ export class MaaFrameworkModule extends Module { } if (await init(`${this.cfg.host}:${this.cfg.port}`)) { logger.info('maa inited') - await set_logging(path.join(process.cwd(), 'debug')) - await set_debug_mode(this.cfg.debug) + await set_log_dir(path.join(process.cwd(), 'debug')) + await set_save_draw(this.cfg.debug) logger.info('maa configured') const stream = FlatToStream(context, (id, msg, detail) => { ipcMainSend('renderer.loader.callback', id, msg, detail) diff --git a/pkgs/loader b/pkgs/loader index dea6ac1..dfa34f6 160000 --- a/pkgs/loader +++ b/pkgs/loader @@ -1 +1 @@ -Subproject commit dea6ac17bd8c55fc733151b5cfd9791c8d15b5c5 +Subproject commit dfa34f62b5b3c9233dcf6520d5065126d2bb02e1