Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
IonAgorria committed Sep 25, 2023
1 parent 1d41eb6 commit fe7f480
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/Game/Runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1037,9 +1037,13 @@ int SDL_main(int argc, char *argv[])
printf("\n");
int ret = 0;
for (int i = 0; i < 2; ++i) {
#ifdef _WIN32
ret = _execv(exec_argv[0], exec_argv.data());
#else
ret = execv(exec_argv[0], exec_argv.data());
#endif
//We shouldn't reach this point
printf("Error at launch %d\n", ret);
printf("Error at launch %d errno %d\n", ret, errno);
}

ErrH.Abort("Error restarting the application", XERR_USER, ret);
Expand Down

0 comments on commit fe7f480

Please sign in to comment.