Merge pull request #1496 from lioncash/wxify
DolphinWX: wx-ify the unofficial version warning
This commit is contained in:
commit
28228ee3ca
|
@ -281,18 +281,19 @@ bool DolphinApp::OnInit()
|
||||||
int w = SConfig::GetInstance().m_LocalCoreStartupParameter.iWidth;
|
int w = SConfig::GetInstance().m_LocalCoreStartupParameter.iWidth;
|
||||||
int h = SConfig::GetInstance().m_LocalCoreStartupParameter.iHeight;
|
int h = SConfig::GetInstance().m_LocalCoreStartupParameter.iHeight;
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
if (File::Exists("www.dolphin-emulator.com.txt"))
|
if (File::Exists("www.dolphin-emulator.com.txt"))
|
||||||
{
|
{
|
||||||
File::Delete("www.dolphin-emulator.com.txt");
|
File::Delete("www.dolphin-emulator.com.txt");
|
||||||
MessageBox(nullptr,
|
wxMessageDialog dlg(nullptr, _(
|
||||||
L"This version of Dolphin was downloaded from a website stealing money from developers of the emulator. Please "
|
"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/",
|
"download Dolphin from the official website instead: http://dolphin-emu.org/"),
|
||||||
L"Unofficial version detected", MB_OK | MB_ICONWARNING);
|
_("Unofficial version detected"), wxOK | wxICON_WARNING);
|
||||||
ShellExecute(nullptr, L"open", L"http://dolphin-emu.org/?ref=badver", nullptr, nullptr, SW_SHOWDEFAULT);
|
dlg.ShowModal();
|
||||||
|
|
||||||
|
wxLaunchDefaultBrowser("http://dolphin-emu.org/?ref=badver");
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
// The following is not needed with X11, where window managers
|
// The following is not needed with X11, where window managers
|
||||||
// do not allow windows to be created off the desktop.
|
// do not allow windows to be created off the desktop.
|
||||||
|
|
Loading…
Reference in New Issue