DolphinWX: Remove the dolphin-emulator.com check.

This check is not useful anymore since that website is not running their own
buildbots anymore. It's also trivially bypassable -- it just happened to work
when the builds were fully automated over there.
This commit is contained in:
Pierre Bourdon 2015-10-30 22:14:19 +01:00
parent dabb411a4c
commit 31f21057d9
2 changed files with 1 additions and 19 deletions

View File

@ -96,7 +96,7 @@ bool DolphinApp::Initialize(int& c, wxChar **v)
bool DolphinApp::OnInit() bool DolphinApp::OnInit()
{ {
if (!wxApp::OnInit() || DolphinEmulatorDotComTextFileExists()) if (!wxApp::OnInit())
return false; return false;
Bind(wxEVT_QUERY_END_SESSION, &DolphinApp::OnEndSession, this); Bind(wxEVT_QUERY_END_SESSION, &DolphinApp::OnEndSession, this);
@ -257,23 +257,6 @@ void DolphinApp::MacOpenFile(const wxString& fileName)
} }
#endif #endif
bool DolphinApp::DolphinEmulatorDotComTextFileExists()
{
if (!File::Exists("www.dolphin-emulator.com.txt"))
return false;
File::Delete("www.dolphin-emulator.com.txt");
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: https://dolphin-emu.org/"),
_("Unofficial version detected"), wxOK | wxICON_WARNING);
dlg.ShowModal();
wxLaunchDefaultBrowser("https://dolphin-emu.org/?ref=badver");
return true;
}
void DolphinApp::AfterInit() void DolphinApp::AfterInit()
{ {
if (!m_batch_mode) if (!m_batch_mode)

View File

@ -33,7 +33,6 @@ private:
void OnEndSession(wxCloseEvent& event); void OnEndSession(wxCloseEvent& event);
void InitLanguageSupport(); void InitLanguageSupport();
void AfterInit(); void AfterInit();
static bool DolphinEmulatorDotComTextFileExists();
bool m_batch_mode = false; bool m_batch_mode = false;
bool m_confirm_stop = false; bool m_confirm_stop = false;