Use PlatformBackend_ShowMessageBox somewhere

This commit is contained in:
Clownacy 2020-04-02 21:32:50 +01:00
parent a935c7bf49
commit 373c0e658a

View file

@ -5,6 +5,7 @@
#include "SDL.h" #include "SDL.h"
#include "../Platform.h"
#include "../../Organya.h" #include "../../Organya.h"
#include "../../WindowsWrapper.h" #include "../../WindowsWrapper.h"
@ -65,7 +66,7 @@ BOOL AudioBackend_Init(void)
{ {
if (SDL_InitSubSystem(SDL_INIT_AUDIO) < 0) 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; return FALSE;
} }
@ -89,7 +90,7 @@ BOOL AudioBackend_Init(void)
if (device_id == 0) 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; return FALSE;
} }