summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorskidau <skidau@gmail.com>2014-11-07 12:33:50 +1100
committerskidau <skidau@gmail.com>2014-11-07 12:33:50 +1100
commit28228ee3caa24bb39abd35f6820c0fcb9e3528a6 (patch)
tree3fac7d15df26a3f775cc18993a00843a24b73853 /Source/Core
parentc36e7b9c23deed94ad43e1589abefb6a6c911477 (diff)
parent611f349429084612a5f6c54819f3b38293dc080b (diff)
Merge pull request #1496 from lioncash/wxify
DolphinWX: wx-ify the unofficial version warning
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinWX/Main.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/Source/Core/DolphinWX/Main.cpp b/Source/Core/DolphinWX/Main.cpp
index 51aa7104af..3ec002e456 100644
--- a/Source/Core/DolphinWX/Main.cpp
+++ b/Source/Core/DolphinWX/Main.cpp
@@ -281,18 +281,19 @@ bool DolphinApp::OnInit()
int w = SConfig::GetInstance().m_LocalCoreStartupParameter.iWidth;
int h = SConfig::GetInstance().m_LocalCoreStartupParameter.iHeight;
-#ifdef _WIN32
if (File::Exists("www.dolphin-emulator.com.txt"))
{
File::Delete("www.dolphin-emulator.com.txt");
- MessageBox(nullptr,
- L"This version of Dolphin was downloaded from a website stealing money from developers of the emulator. Please "
- L"download Dolphin from the official website instead: http://dolphin-emu.org/",
- L"Unofficial version detected", MB_OK | MB_ICONWARNING);
- ShellExecute(nullptr, L"open", L"http://dolphin-emu.org/?ref=badver", nullptr, nullptr, SW_SHOWDEFAULT);
+ wxMessageDialog dlg(nullptr, _(
+ "This version of Dolphin was downloaded from a website stealing money from developers of the emulator. Please "
+ "download Dolphin from the official website instead: http://dolphin-emu.org/"),
+ _("Unofficial version detected"), wxOK | wxICON_WARNING);
+ dlg.ShowModal();
+
+ wxLaunchDefaultBrowser("http://dolphin-emu.org/?ref=badver");
+
exit(0);
}
-#endif
// The following is not needed with X11, where window managers
// do not allow windows to be created off the desktop.