Add enableAllBypasses and call on startup

Expose an optional enableAllBypasses export in the Napi2Native loader and invoke it during initialization in both napcat-framework and napcat-shell to enable bypasses (logs when enabled). Pre-initialize native modules earlier in the shell startup flow and await nativePacketHandler.init. Also update config o3HookMode from 1 to 0, apply a small signature whitespace fix in clientContext.sendOidbPacket, and include an updated native binary.
This commit is contained in:
手瓜一十雪
2026-02-13 14:56:18 +08:00
parent 62c9246368
commit 5c72f771c3
6 changed files with 27 additions and 16 deletions

View File

@@ -6,6 +6,8 @@ import { LogWrapper } from '../../helper/log';
export interface Napi2NativeExportType {
initHook?: (send: string, recv: string) => boolean;
setVerbose?: (verbose: boolean) => void; // 默认关闭日志
enableAllBypasses?: () => void;
}
export class Napi2NativeLoader {