From 66db2a93282908d18abeba8b10b3c911e6b53210 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Wed, 15 Jan 2025 19:36:12 -0600 Subject: Fixed hashes and added information box --- src/port/Engine.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/port/Engine.cpp') diff --git a/src/port/Engine.cpp b/src/port/Engine.cpp index c088e0e5..3cfa5086 100644 --- a/src/port/Engine.cpp +++ b/src/port/Engine.cpp @@ -41,7 +41,6 @@ #include "port/mods/PortEnhancements.h" #include -#include #include namespace fs = std::filesystem; @@ -219,7 +218,7 @@ bool GameEngine::GenAssetFile() { exit(1); } - ShowMessage(("Found " + game.value()).c_str(), "The extraction process will now begin.\n\nThis may take a few minutes."); + ShowMessage(("Found " + game.value()).c_str(), "The extraction process will now begin.\n\nThis may take a few minutes.", SDL_MESSAGEBOX_INFORMATION); return extractor->GenerateOTR(); } @@ -458,11 +457,11 @@ uint32_t GameEngine::GetInterpolationFPS() { CVarGetInteger("gInterpolationFPS", 60)); } -void GameEngine::ShowMessage(const char* title, const char* message) { +void GameEngine::ShowMessage(const char* title, const char* message, SDL_MessageBoxFlags type) { #if defined(__SWITCH__) SPDLOG_ERROR(message); #else - SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, title, message, nullptr); + SDL_ShowSimpleMessageBox(type, title, message, nullptr); SPDLOG_ERROR(message); #endif } -- cgit v1.2.3