예제 #1
0
        internal void InstallAtmosphereCheat(IEnumerable <string> rawInstructions, ProcessTamperInfo info, ulong exeAddress)
        {
            if (!CanInstallOnPid(info.Process.Pid))
            {
                return;
            }

            ITamperedProcess   tamperedProcess = new TamperedKProcess(info.Process);
            AtmosphereCompiler compiler        = new AtmosphereCompiler();
            ITamperProgram     program         = compiler.Compile(rawInstructions, exeAddress, info.HeapAddress, tamperedProcess);

            if (program != null)
            {
                _programs.Enqueue(program);
            }

            Activate();
        }
예제 #2
0
        internal void InstallAtmosphereCheat(string name, IEnumerable <string> rawInstructions, ProcessTamperInfo info, ulong exeAddress)
        {
            if (!CanInstallOnPid(info.Process.Pid))
            {
                return;
            }

            ITamperedProcess   tamperedProcess = new TamperedKProcess(info.Process);
            AtmosphereCompiler compiler        = new AtmosphereCompiler(exeAddress, info.HeapAddress, info.AliasAddress, info.AslrAddress, tamperedProcess);
            ITamperProgram     program         = compiler.Compile(name, rawInstructions);

            if (program != null)
            {
                program.TampersCodeMemory = false;

                _programs.Enqueue(program);
            }

            Activate();
        }