Skip to content

Instantly share code, notes, and snippets.

@friedkeenan
Last active January 2, 2019 19:15
Show Gist options
  • Save friedkeenan/fdef33762dbd3f5e09cea8b6d7ad38f0 to your computer and use it in GitHub Desktop.
Save friedkeenan/fdef33762dbd3f5e09cea8b6d7ad38f0 to your computer and use it in GitHub Desktop.
envSetNroReturnPath() Example
#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