Pass the actual arg-str start to envSetNextLoad().

This commit is contained in:
yellows8 2018-02-17 21:17:11 -05:00
parent 77baa0c32f
commit 52a012c50f

View File

@ -17,7 +17,7 @@ static void launchFile(const char* path, argData_s* args)
/*if (strncmp(path, "sdmc:/",6) == 0) /*if (strncmp(path, "sdmc:/",6) == 0)
path += 5;*/ path += 5;*/
memcpy(argBuf, args->buf, sizeof(args->buf)); memcpy(argBuf, args->buf, sizeof(args->buf));
Result rc = envSetNextLoad(path, (char*)argBuf); Result rc = envSetNextLoad(path, (char*)&argBuf[1]);
if(R_FAILED(rc)) fatalSimple(rc);//TODO: How should failing be handled? if(R_FAILED(rc)) fatalSimple(rc);//TODO: How should failing be handled?
uiExitLoop(); uiExitLoop();
} }