Retrieving System Generation?
Retrieving System Generation?
Simple question: Is there a way to retrieve the system type? (e.g. Phat, lite, DSi, ect)
Re: Retrieving System Generation?
programs usally shouldn't need to know on what device they are running on.
why do you need this?
why do you need this?
Re: Retrieving System Generation?
it is helpful to know if you are in DSi mode as you have access to more memory and a faster processor. a quick test would be to allocate 4 MB of memory. if it works you are in DSi mode. you can currently also use the following code:
I am not sure if it is a supported path, so use it at your own risk. if __dsimode is true then you are in DSi mode.
Code: Select all
extern bool __dsimode;
Re: Retrieving System Generation?
my homebrew sandbox engine ds-dsi detects dsimode.
-
- Site Admin
- Posts: 1859
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: Retrieving System Generation?
This question comes up often enough that it's probably worth implementing a libnds function to obtain the system type. Patches are encouraged, pointers to libraries and/or random code that isn't supplied and maintained by devkitPro make life awkward for everyone.
Who is online
Users browsing this forum: No registered users and 62 guests