Merge pull request #1 from LaurentMarchelli/recalbox

Fix : Game not saved when exit button is used.
This commit is contained in:
dabonetn 2016-03-28 21:15:34 -04:00
commit 834f70a431

View File

@ -353,25 +353,8 @@ void EnterMessageLoop ()
if (joyexitenable)
{
CheckJoyExit();
if (joyquitevent)
{
if(g_fh)
{
fprintf(g_fh,"*** Logging ended\n\n");
fclose(g_fh);
if (joyquitevent) return;
}
RiffFinishWriteFile();
fclose(registry); //close conf file (linapple.conf by default)
SDL_Quit();
// CURL routines
curl_easy_cleanup(g_curl);
curl_global_cleanup();
printf("Linapple: successfully exited!\n");
std::_Exit(0);
}
}
if (g_bFullSpeed)
ContinueExecution();
}