Use PlatformBackend_ShowMessageBox somewhere
This commit is contained in:
parent
a935c7bf49
commit
373c0e658a
1 changed files with 3 additions and 2 deletions
|
@ -5,6 +5,7 @@
|
|||
|
||||
#include "SDL.h"
|
||||
|
||||
#include "../Platform.h"
|
||||
#include "../../Organya.h"
|
||||
#include "../../WindowsWrapper.h"
|
||||
|
||||
|
@ -65,7 +66,7 @@ BOOL AudioBackend_Init(void)
|
|||
{
|
||||
if (SDL_InitSubSystem(SDL_INIT_AUDIO) < 0)
|
||||
{
|
||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Fatal error (SDL2 audio backend)", "'SDL_InitSubSystem(SDL_INIT_AUDIO)' failed", NULL);
|
||||
PlatformBackend_ShowMessageBox("Fatal error (SDL2 audio backend)", "'SDL_InitSubSystem(SDL_INIT_AUDIO)' failed");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -89,7 +90,7 @@ BOOL AudioBackend_Init(void)
|
|||
|
||||
if (device_id == 0)
|
||||
{
|
||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Fatal error (SDL2 audio backend)", "'SDL_OpenAudioDevice' failed", NULL);
|
||||
PlatformBackend_ShowMessageBox("Fatal error (SDL2 audio backend)", "'SDL_OpenAudioDevice' failed");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue