diff --git a/libretro/start.c b/libretro/start.c index a045ff9f74..abf01a9fb5 100644 --- a/libretro/start.c +++ b/libretro/start.c @@ -18,6 +18,7 @@ */ #include +#include #include #include @@ -113,9 +114,10 @@ void _start() } } + int result; { char *argv[2] = { "./a.out", NULL }; - main(1, argv); + result = main(1, argv); } - ExitToShell(); + exit(result); }