mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 09:31:14 +00:00
Revert "- Addressed crash on exit with MinGW. This is a hack and i've reported it as a bug in the MinGW C runtime."
This reverts commit 0e25e40deb
.
This commit is contained in:
parent
fce7af81af
commit
b78978fa7b
3 changed files with 0 additions and 29 deletions
|
@ -77,10 +77,6 @@
|
|||
extern FILE *Logfile;
|
||||
extern bool insave;
|
||||
|
||||
#ifdef __MINGW32__
|
||||
extern bool exiting; // for MinGW
|
||||
#endif
|
||||
|
||||
CVAR (Bool, sv_cheats, false, CVAR_SERVERINFO | CVAR_LATCH)
|
||||
CVAR (Bool, sv_unlimited_pickup, false, CVAR_SERVERINFO)
|
||||
CVAR (Int, cl_blockcheats, 0, 0)
|
||||
|
@ -110,17 +106,11 @@ bool CheckCheatmode (bool printmsg)
|
|||
|
||||
CCMD (quit)
|
||||
{
|
||||
#ifdef __MINGW32__
|
||||
exiting = true;
|
||||
#endif
|
||||
if (!insave) exit (0);
|
||||
}
|
||||
|
||||
CCMD (exit)
|
||||
{
|
||||
#ifdef __MINGW32__
|
||||
exiting = true;
|
||||
#endif
|
||||
if (!insave) exit (0);
|
||||
}
|
||||
|
||||
|
|
|
@ -56,10 +56,6 @@ FString JitCaptureStackTrace(int framesToSkip, bool includeNativeFrames) { retur
|
|||
void JitRelease() {}
|
||||
#endif
|
||||
|
||||
#ifdef __MINGW32__
|
||||
extern bool exiting; // for MinGW
|
||||
#endif
|
||||
|
||||
cycle_t VMCycles[10];
|
||||
int VMCalls[10];
|
||||
|
||||
|
@ -355,13 +351,6 @@ VMFrameStack::VMFrameStack()
|
|||
|
||||
VMFrameStack::~VMFrameStack()
|
||||
{
|
||||
#ifdef __MINGW32__
|
||||
if (exiting) // hack hack
|
||||
{
|
||||
Blocks = NULL;
|
||||
UnusedBlocks = NULL;
|
||||
}
|
||||
#endif
|
||||
while (PopFrame() != NULL)
|
||||
{ }
|
||||
if (Blocks != NULL)
|
||||
|
|
|
@ -373,10 +373,6 @@ static const uint16_t IBM437ToUnicode[] = {
|
|||
|
||||
// TYPES -------------------------------------------------------------------
|
||||
|
||||
#ifdef __MINGW32__
|
||||
bool exiting = false; // for MinGW
|
||||
#endif
|
||||
|
||||
class FBasicStartupScreen : public FStartupScreen
|
||||
{
|
||||
public:
|
||||
|
@ -1352,10 +1348,6 @@ void FStrifeStartupScreen::DrawStuff(int old_laser, int new_laser)
|
|||
|
||||
void ST_Endoom()
|
||||
{
|
||||
#ifdef __MINGW32__
|
||||
exiting = true;
|
||||
#endif
|
||||
|
||||
if (showendoom == 0) exit(0);
|
||||
|
||||
if (gameinfo.Endoom.Len() == 0)
|
||||
|
|
Loading…
Reference in a new issue