1
0
Fork 0
mirror of https://gitlab.com/niansa/pilang2.git synced 2025-03-06 20:49:22 +01:00

Implemented automatic start of /main.pil on 3DS

This commit is contained in:
niansa 2020-05-28 10:25:46 +02:00
parent 34d9c611f5
commit eb6e5c47d5

View file

@ -16,11 +16,18 @@ void wait_for_gpkey(u32 key) {
}
}
int main(int argc, char *argv[]) {
int main(void) {
using namespace std;
// Intialise stuff
gfxInitDefault();
consoleInit(GFX_TOP, NULL);
// Generate argc and argv
char *argv[2] = {(char*)"/proc/self/exe", (char*)"/main.pil"};
int argc = 1;
ifstream f("/main.pil");
if (f.good()) {
argc = 2;
}
// Run actual main
int res;
try {