Closed Rinnegatamante closed 9 years ago
Sounds like yet another case of ignoring the result-code......
https://github.com/smealum/ctrulib/blob/master/libctru/source/services/cfgu.c#L66-L78
code looks fine to me. have you checked the return value to see if there are any errors ?
It seems getModel returns an error: 0xD900182F.
Don't know why that would happen if you initialized cfgu correctly, unless you corrupted the cfgu handle somehow.
I use other cfgu functions without any problem (like CFGU_SecureInfoGetRegion, CFGU_GetSystemLanguage, CFGU_GetConfigInfoBlk2). This seems to be the only one causing this kind of errors.
Passing wrong parameters/a bad pointer? Try it outside of your lua environment on the same 3DS.
Nvm, updating to last ctrulib solved the issue ;)
Calling this on an O3DS returns me 1 as return value ( http://3dbrew.org/wiki/Cfg:GetSystemModel )