shithub: cstory

Download patch

ref: 373c0e658a246388766588bd610ddfe749376143
parent: a935c7bf490ce3d47b58eb9346b62f5d1419f6dd
author: Clownacy <[email protected]>
date: Thu Apr 2 17:32:50 EDT 2020

Use PlatformBackend_ShowMessageBox somewhere

--- a/src/Backends/Audio/SDL2.cpp
+++ b/src/Backends/Audio/SDL2.cpp
@@ -5,6 +5,7 @@
 
 #include "SDL.h"
 
+#include "../Platform.h"
 #include "../../Organya.h"
 #include "../../WindowsWrapper.h"
 
@@ -65,7 +66,7 @@
 {
 	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 @@
 
 	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;
 	}