Last active
January 2, 2019 19:15
-
-
Save friedkeenan/fdef33762dbd3f5e09cea8b6d7ad38f0 to your computer and use it in GitHub Desktop.
envSetNroReturnPath() Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <switch.h> | |
int main(int argc, char* argv[]) | |
{ | |
consoleInit(NULL); | |
printf("Hello World!\n"); | |
while (appletMainLoop()) | |
{ | |
hidScanInput(); | |
u64 kDown = hidKeysDown(CONTROLLER_P1_AUTO); | |
if (kDown & KEY_PLUS) | |
break; | |
consoleUpdate(NULL); | |
} | |
consoleExit(NULL); | |
// Set FTPD to be loaded next | |
envSetNextLoad("sdmc:/switch/ftpd.nro","sdmc:/switch/ftpd.nro"); | |
// Set Goldleaf to be loaded after FTPD | |
envSetNroReturnPath("sdmc:/switch/Goldleaf.nro"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment