summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorskidau <skidau@gmail.com>2013-11-22 14:55:25 +1100
committerskidau <skidau@gmail.com>2013-11-22 14:55:25 +1100
commitefeb0096c995ee4d0b8e6d98977c842c4fa7ee74 (patch)
tree6589f2143150e9683bfce8fabd6bb12942200b67 /Source/Core
parentea9ac07ec9a920612425413fb4256519b827328f (diff)
Changed the DSP ROM warning from a panic alert to an on-screen message.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Src/DSP/DSPCore.cpp14
-rw-r--r--Source/Core/Core/Src/DSP/DSPHost.h1
-rw-r--r--Source/Core/Core/Src/HW/DSPLLE/DSPHost.cpp6
3 files changed, 16 insertions, 5 deletions
diff --git a/Source/Core/Core/Src/DSP/DSPCore.cpp b/Source/Core/Core/Src/DSP/DSPCore.cpp
index 377e21fba8..ff05dcb3fa 100644
--- a/Source/Core/Core/Src/DSP/DSPCore.cpp
+++ b/Source/Core/Core/Src/DSP/DSPCore.cpp
@@ -113,13 +113,17 @@ static bool VerifyRoms(const char *irom_filename, const char *coef_filename)
}
if (rom_idx == 1)
- PanicAlertT("You are using an old free DSP ROM made by the Dolphin Team.\n"
- "Only games using the Zelda UCode will work correctly.\n");
+ {
+ DSPHost_OSD_AddMessage("You are using an old free DSP ROM made by the Dolphin Team.", 6000);
+ DSPHost_OSD_AddMessage("Only games using the Zelda UCode will work correctly.", 6000);
+ }
if (rom_idx == 2)
- PanicAlertT("You are using a free DSP ROM made by the Dolphin Team.\n"
- "All Wii games will work correctly, and most GC games should "
- "also work fine, but the GBA/IPL/CARD UCodes will not work.\n");
+ {
+ DSPHost_OSD_AddMessage("You are using a free DSP ROM made by the Dolphin Team.", 8000);
+ DSPHost_OSD_AddMessage("All Wii games will work correctly, and most GC games should ", 8000);
+ DSPHost_OSD_AddMessage("also work fine, but the GBA/IPL/CARD UCodes will not work.\n", 8000);
+ }
return true;
}
diff --git a/Source/Core/Core/Src/DSP/DSPHost.h b/Source/Core/Core/Src/DSP/DSPHost.h
index cef329a7ec..18ba5ec447 100644
--- a/Source/Core/Core/Src/DSP/DSPHost.h
+++ b/Source/Core/Core/Src/DSP/DSPHost.h
@@ -12,6 +12,7 @@
u8 DSPHost_ReadHostMemory(u32 addr);
void DSPHost_WriteHostMemory(u8 value, u32 addr);
+void DSPHost_OSD_AddMessage(const std::string& str, u32 ms);
bool DSPHost_OnThread();
bool DSPHost_Wii();
void DSPHost_InterruptRequest();
diff --git a/Source/Core/Core/Src/HW/DSPLLE/DSPHost.cpp b/Source/Core/Core/Src/HW/DSPLLE/DSPHost.cpp
index 4b25f4ba20..5b2dc1f56e 100644
--- a/Source/Core/Core/Src/HW/DSPLLE/DSPHost.cpp
+++ b/Source/Core/Core/Src/HW/DSPLLE/DSPHost.cpp
@@ -13,6 +13,7 @@
#include "../../ConfigManager.h"
#include "../../PowerPC/PowerPC.h"
#include "Host.h"
+#include "OnScreenDisplay.h"
// The user of the DSPCore library must supply a few functions so that the
// emulation core can access the environment it runs in. If the emulation
@@ -29,6 +30,11 @@ void DSPHost_WriteHostMemory(u8 value, u32 addr)
DSP::WriteARAM(value, addr);
}
+void DSPHost_OSD_AddMessage(const std::string& str, u32 ms)
+{
+ OSD::AddMessage(str, ms);
+}
+
bool DSPHost_OnThread()
{
const SCoreStartupParameter& _CoreParameter = SConfig::GetInstance().m_LocalCoreStartupParameter;