feat: linux.x64'packet

This commit is contained in:
手瓜一十雪
2024-11-05 21:12:19 +08:00
parent 78b4aa9295
commit b89f2805e7

View File

@@ -12,7 +12,7 @@ export interface NativePacketExportType {
SendPacket?: (cmd: string, data: string, trace_id: string) => void; SendPacket?: (cmd: string, data: string, trace_id: string) => void;
} }
export class NativePacketClient extends PacketClient { export class NativePacketClient extends PacketClient {
private readonly supportedPlatforms = ['win32.x64']; private readonly supportedPlatforms = ['win32.x64','linux.x64'];
private MoeHooExport: { exports: NativePacketExportType } = { exports: {} }; private MoeHooExport: { exports: NativePacketExportType } = { exports: {} };
private sendEvent = new LRUCache<number, string>(500);//seq->trace_id private sendEvent = new LRUCache<number, string>(500);//seq->trace_id
constructor(core: NapCatCore) { constructor(core: NapCatCore) {