mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-23 03:52:12 -04:00
move removal of temporary directories to I_Quit()
Don't leave garbage in the temporary directory on errors.
This commit is contained in:
parent
afcaf9415c
commit
34892f73b7
34
src/d_quit.c
34
src/d_quit.c
@ -32,28 +32,15 @@
|
||||
// I_Quit
|
||||
//
|
||||
|
||||
void I_Quit(void)
|
||||
{
|
||||
SDL_QuitSubSystem(SDL_INIT_VIDEO);
|
||||
|
||||
SDL_Quit();
|
||||
}
|
||||
|
||||
void I_QuitFirst(void)
|
||||
{
|
||||
if (demorecording)
|
||||
{
|
||||
G_CheckDemoStatus();
|
||||
}
|
||||
}
|
||||
|
||||
extern char **tempdirs;
|
||||
|
||||
void I_QuitLast(void)
|
||||
void I_Quit(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
M_SaveDefaults();
|
||||
SDL_QuitSubSystem(SDL_INIT_VIDEO);
|
||||
|
||||
SDL_Quit();
|
||||
|
||||
if (!tempdirs)
|
||||
{
|
||||
@ -93,3 +80,16 @@ void I_QuitLast(void)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void I_QuitFirst(void)
|
||||
{
|
||||
if (demorecording)
|
||||
{
|
||||
G_CheckDemoStatus();
|
||||
}
|
||||
}
|
||||
|
||||
void I_QuitLast(void)
|
||||
{
|
||||
M_SaveDefaults();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user