VitorVilela7 / UberASMTool

This tool lets you insert level, overworld, game mode, status bar, sprite and global ASM without using a patch.
GNU General Public License v3.0
19 stars 13 forks source link

Can't change to a custom gamemode in vanilla gamemodes' main #28

Open DiskPoppy opened 2 years ago

DiskPoppy commented 2 years ago

I think uberasmtool still thinks it's a vanilla gamemode, so it uses the vanilla table and crashes.

Fernap commented 2 years ago

Presumably line 55 in asm/base/gamemode.asm should be changed to LDA !previous_mode rather than LDA $0100|!addr (haven't actually tested though). previous_mode has already been updated by that point, so it'll jump to the routine for the currently executing mode, rather than the mode that $0100 has been changed to.

That is, unless you want the current mode to be able to be overridden in this way, but that doesn't look like it's intended based on the way what's there is written.