From 3911cb2fde3cfb50d995d82e30262de1790086c7 Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Mon, 29 Sep 2014 21:43:48 +0200 Subject: [PATCH] _start(): Use exit() instead of ExitToShell() --- libretro/start.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); }