mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- stop the music when processing a fatal error.
This commit is contained in:
parent
c1e64fa576
commit
9fc309d5b5
2 changed files with 4 additions and 0 deletions
|
@ -32,6 +32,7 @@
|
|||
*/
|
||||
|
||||
#include "i_common.h"
|
||||
#include "s_sound.h"
|
||||
|
||||
#include <sys/sysctl.h>
|
||||
#include <unistd.h>
|
||||
|
@ -125,6 +126,7 @@ void popterm()
|
|||
void Mac_I_FatalError(const char* const message)
|
||||
{
|
||||
I_SetMainWindowVisible(false);
|
||||
S_StopMusic(true);
|
||||
|
||||
FConsoleWindow::GetInstance().ShowFatalError(message);
|
||||
}
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
#include "doomstat.h"
|
||||
#include "r_utility.h"
|
||||
#include "g_levellocals.h"
|
||||
#include "s_sound.h"
|
||||
|
||||
#include "stats.h"
|
||||
#include "st_start.h"
|
||||
|
@ -1060,6 +1061,7 @@ void DoMain (HINSTANCE hInstance)
|
|||
{
|
||||
I_ShutdownGraphics ();
|
||||
RestoreConView ();
|
||||
S_StopMusic(true);
|
||||
I_FlushBufferedConsoleStuff();
|
||||
if (error.GetMessage ())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue