public string GamePointers()
 {
     return(string.Concat(
                $"CHR: {Characters.GetPointer(Program)} ",
                $"GW: {GameWorld.GetPointer(Program)} ",
                $"PUS: {PlayerUberStateGroup.GetPointer(Program)} ",
                $"TSM: {TitleScreenManager.GetPointer(Program)} ",
                $"GSM: {GameStateMachine.GetPointer(Program)} ",
                $"GC: {GameController.GetPointer(Program)} ",
                $"SM: {ScenesManager.GetPointer(Program)} ",
                $"USC: {UberStateController.GetPointer(Program)} ",
                $"USL: {UberStateCollection.GetPointer(Program)} ",
                $"DC: {DifficultyController.GetPointer(Program)} ",
                $"FC: {FrameCounter.GetPointer(Program)} "
                ));
 }
Пример #2
0
        public void PatchNoPause(bool patch)
        {
            if (!noPausePatched.HasValue || patch != noPausePatched.Value)
            {
                if (NoPausePatch.GetPointer(Program) == IntPtr.Zero)
                {
                    return;
                }

                if (patch)
                {
                    NoPausePatch.Write(Program, new byte[] { 0xFF, 0xC5, 0x90 });
                }
                else
                {
                    NoPausePatch.Write(Program, new byte[] { 0x0F, 0xB6, 0xEA });
                }
                noPausePatched = patch;
            }
        }
Пример #3
0
        public void PatchTargetFrameRate(bool patch)
        {
            if (!targetFrameRatePatched.HasValue || patch != targetFrameRatePatched.Value)
            {
                if (TargetFrameRatePatch.GetPointer(Program) == IntPtr.Zero)
                {
                    return;
                }

                if (patch)
                {
                    TargetFrameRatePatch.Write(Program, new byte[] { 0xB8, 0x3C, 0x00, 0x00, 0x00 });
                    VSyncPatch.Write(Program, new byte[] { 0x33, 0xC0, 0xC3, 0x90 });
                }
                else
                {
                    TargetFrameRatePatch.Write(Program, new byte[] { 0xE8, 0xE7, 0x1E, 0xFF, 0xFF });
                    VSyncPatch.Write(Program, new byte[] { 0x48, 0x83, 0xEC, 0x28 });
                }
                targetFrameRatePatched = patch;
            }
        }