Update Applewin.cpp

This commit is contained in:
dabonetn 2015-11-03 13:29:49 -05:00
parent c26ee49610
commit 91fb612b16
1 changed files with 20 additions and 21 deletions

View File

@ -350,28 +350,27 @@ void EnterMessageLoop ()
ContinueExecution();
if (g_nAppMode != MODE_DEBUG)
{
if (joyexitenable)
{
CheckJoyExit();
if (joyquitevent) {
if(g_fh)
{
fprintf(g_fh,"*** Logging ended\n\n");
fclose(g_fh);
}
if (joyexitenable)
{
CheckJoyExit();
if (joyquitevent)
{
if(g_fh)
{
fprintf(g_fh,"*** Logging ended\n\n");
fclose(g_fh);
}
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);
}
}
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();