Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error looking for REG_DSIMODE #16

Open
mrhappyasthma opened this issue Dec 1, 2019 · 1 comment · May be fixed by #17
Open

Compilation error looking for REG_DSIMODE #16

mrhappyasthma opened this issue Dec 1, 2019 · 1 comment · May be fixed by #17

Comments

@mrhappyasthma
Copy link

mrhappyasthma commented Dec 1, 2019

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
Copy link
Author

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 mrhappyasthma linked a pull request Dec 1, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant