Beispiel #1
0
        // Inject code that shows hitboxes in-game
        // Note: a bit ugly at the moment. Hack folder is hardcoded instead of taken from Config file,
        // and it's put here in the GFX tab by a lack of a better place. The hacks in the hack tab are
        // constantly reapplied when memory is changed, which doesn't work with this hack which initializes
        // variables that are later changed.
        public void InjectHitboxViewCode()
        {
            RomHack hck = null;

            try
            {
                if (RomVersionConfig.Version == Structs.RomVersion.US)
                {
                    hck = new RomHack("Resources\\Hacks\\HitboxViewU.hck", "HitboxView");
                }
                else if (RomVersionConfig.Version == Structs.RomVersion.JP)
                {
                    hck = new RomHack("Resources\\Hacks\\HitboxViewJ.hck", "HitboxView");
                }
                else
                {
                    MessageBox.Show("Hitbox view hack only available on US and JP versions");
                }
            }
            catch (System.IO.FileNotFoundException)
            {
                MessageBox.Show("Hack files are missing in Resources\\Hacks folder");
            }
            hck?.LoadPayload();
        }
Beispiel #2
0
        public GhostTab()
        {
            InitializeComponent();
            listBoxGhosts.KeyDown += listBoxGhosts_KeyDown;

            instance = this;
            hack     = new RomHack("Resources/Hacks/GhostHack.hck", "Ghost Hack");
            UpdateFileWatchers();
        }