UberASMTool icon indicating copy to clipboard operation
UberASMTool copied to clipboard

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

Open DiskPoppy opened this issue 2 years ago • 1 comments

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

DiskPoppy avatar Apr 07 '22 17:04 DiskPoppy

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.

Fernap avatar Apr 08 '22 01:04 Fernap