Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
feat: update proto
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-para committed Nov 1, 2023
1 parent 4b34285 commit 8a32093
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions app/main/src/components/maafw/index.ts
Original file line number Diff line number Diff line change
@@ -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'

Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pkgs/loader

0 comments on commit 8a32093

Please sign in to comment.