コード例 #1
0
ファイル: Command.cs プロジェクト: zgbjmy2009/SpellFire
        public CommandHandler(ControlInterface ctrlInterface, GlobalConfig config)
        {
            this.commandQueue  = new CommandQueue(ctrlInterface);
            this.ctrlInterface = ctrlInterface;
            this.config        = config;

            eventCallback       = LuaEventHandler;
            luaEventCallbackPtr = Marshal.GetFunctionPointerForDelegate(eventCallback);
            frameName           = SFUtil.GetRandomAsciiString(5);

            ResolveEndSceneAddress();
            RegisterFunctions();
        }
コード例 #2
0
ファイル: RemoteMain.cs プロジェクト: zgbjmy2009/SpellFire
        public RemoteMain(RemoteHooking.IContext context, string channelName, GlobalConfig config)
        {
            ctrlInterface = RemoteHooking.IpcConnectClient <ControlInterface>(channelName);

            EstablishReverseRemotingConnection(channelName);

            commandHandler = new CommandHandler(ctrlInterface, config);

            packetManager = new PacketManager(ctrlInterface, commandHandler);

            commandHandler.DetourWndProc();

            wardenBuster = new WardenBuster(ctrlInterface.hostControl, commandHandler);

            ctrlInterface.hostControl.PrintMessage($"Ready");
        }
コード例 #3
0
        public RemoteMain(RemoteHooking.IContext context, GlobalConfig config)
        {
            try
            {
                ctrlInterface = new ControlInterface();

                SetupRemotingServer();

                commandHandler = new CommandHandler(ctrlInterface, config);

                packetManager = new PacketManager(ctrlInterface, commandHandler);

                commandHandler.DetourWndProc();

                wardenBuster = new WardenBuster(ctrlInterface.hostControl, commandHandler);

                ctrlInterface.hostControl.PrintMessage($"Ready");
            }
            catch (Exception e)
            {
                ctrlInterface.hostControl.PrintMessage(e.ToString());
            }
        }
コード例 #4
0
ファイル: CommandQueue.cs プロジェクト: KKovs/SpellFire
 public CommandQueue(ControlInterface ctrlInterface)
 {
     this.ctrlInterface = ctrlInterface;
 }