savegame-manager icon indicating copy to clipboard operation
savegame-manager copied to clipboard

Compilation error looking for REG_DSIMODE

Open mrhappyasthma opened this issue 5 years ago • 1 comments

In dsi.cpp the symbol REG_DSIMODE cannot be found. I got around this for my needs by just removing that reference since I'm not using DSI in this case.

arm9/source/dsi.cpp:34:10 error: 'REG_DSIMODE' was not declared in this scope; did you mean 'REG_IME'?
34 |   return (REG_DSIMODE) != 0) ? true : false;
   |           ^~~~~~~~~
   |           REG_IME

mrhappyasthma avatar Dec 01 '19 13:12 mrhappyasthma

Seems like the fix is to use isDSiMode() from libnds/system.h.

https://github.com/devkitPro/libnds/blob/master/include/nds/system.h#L127

mrhappyasthma avatar Dec 01 '19 13:12 mrhappyasthma