Homebrew development library for Nintendo 3DS/Horizon OS user mode (Arm11) by devkitPro
![]() When the APT status is APP_PREPARE_SLEEPMODE, the application main thread should call aptSignalReadyForSleep() to signal that it is ready to enter sleep mode, and then call aptWaitStatusEvent() as usual. Example code: APP_STATUS status; while ((status = aptGetStatus()) != APP_EXITING) { if(status==APP_RUNNING) { // application logic here } else if(status == APP_SUSPENDING) { aptReturnToMenu(); } else if(status == APP_PREPARE_SLEEPMODE) { aptSignalReadyForSleep(); aptWaitStatusEvent(); } } This maybe isn't the proper/recommended way to do sleep mode, but I tested it multiple times and it always worked reliably. (note: maybe the sample code above will not work if GPU drawing is done in a separate thread, haven't tested that) |
||
---|---|---|
examples | ||
libctru | ||
README.md |
ctrulib
CTR User Library library for writing user mode arm11 code for the 3DS (CTR)
the goal with this is to create a very straightforward interface with the 3DS's OS. it is not meant to provide higher level functions; to put things in perspective, the purpose of ctrulib would be to sit between the OS and a possible port of SDL rather than replace it.
license
you may do whatever the hell you want with ctrulib as long as you give proper credit to its authors. that includes making commercial games/apps that use ctrulib. i'd personally rather you didn't sell ctrulib itself, because that would not be nice of you, but i'm not a lawyer and it's not like i'm going to sue you.