mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-20 16:41:02 +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 "i_common.h"
|
||||||
|
#include "s_sound.h"
|
||||||
|
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -125,6 +126,7 @@ void popterm()
|
||||||
void Mac_I_FatalError(const char* const message)
|
void Mac_I_FatalError(const char* const message)
|
||||||
{
|
{
|
||||||
I_SetMainWindowVisible(false);
|
I_SetMainWindowVisible(false);
|
||||||
|
S_StopMusic(true);
|
||||||
|
|
||||||
FConsoleWindow::GetInstance().ShowFatalError(message);
|
FConsoleWindow::GetInstance().ShowFatalError(message);
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,6 +81,7 @@
|
||||||
#include "doomstat.h"
|
#include "doomstat.h"
|
||||||
#include "r_utility.h"
|
#include "r_utility.h"
|
||||||
#include "g_levellocals.h"
|
#include "g_levellocals.h"
|
||||||
|
#include "s_sound.h"
|
||||||
|
|
||||||
#include "stats.h"
|
#include "stats.h"
|
||||||
#include "st_start.h"
|
#include "st_start.h"
|
||||||
|
@ -1060,6 +1061,7 @@ void DoMain (HINSTANCE hInstance)
|
||||||
{
|
{
|
||||||
I_ShutdownGraphics ();
|
I_ShutdownGraphics ();
|
||||||
RestoreConView ();
|
RestoreConView ();
|
||||||
|
S_StopMusic(true);
|
||||||
I_FlushBufferedConsoleStuff();
|
I_FlushBufferedConsoleStuff();
|
||||||
if (error.GetMessage ())
|
if (error.GetMessage ())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue