diff options
| author | Lioncash <mathew1800@gmail.com> | 2015-10-30 18:28:03 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2015-10-30 18:28:03 -0400 |
| commit | b14f5424bf9b289603ef4c9ee1bb640f1bc76dc2 (patch) | |
| tree | 3ca5a9b89ea9738b2dabd44e28efabf20950e5f1 /Source | |
| parent | dabb411a4cdd13c43d5abdb90ce8e3f167f7f1d7 (diff) | |
| parent | 31f21057d999a8ce7acbf325084b9ff37918d322 (diff) | |
Merge pull request #3215 from delroth/remove-check
DolphinWX: Remove the dolphin-emulator.com check.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/DolphinWX/Main.cpp | 19 | ||||
| -rw-r--r-- | Source/Core/DolphinWX/Main.h | 1 |
2 files changed, 1 insertions, 19 deletions
diff --git a/Source/Core/DolphinWX/Main.cpp b/Source/Core/DolphinWX/Main.cpp index acecd9fc04..3c6250eb3f 100644 --- a/Source/Core/DolphinWX/Main.cpp +++ b/Source/Core/DolphinWX/Main.cpp @@ -96,7 +96,7 @@ bool DolphinApp::Initialize(int& c, wxChar **v) bool DolphinApp::OnInit() { - if (!wxApp::OnInit() || DolphinEmulatorDotComTextFileExists()) + if (!wxApp::OnInit()) return false; Bind(wxEVT_QUERY_END_SESSION, &DolphinApp::OnEndSession, this); @@ -257,23 +257,6 @@ void DolphinApp::MacOpenFile(const wxString& fileName) } #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() { if (!m_batch_mode) diff --git a/Source/Core/DolphinWX/Main.h b/Source/Core/DolphinWX/Main.h index bc6bae0a57..9b3bf2fdd0 100644 --- a/Source/Core/DolphinWX/Main.h +++ b/Source/Core/DolphinWX/Main.h @@ -33,7 +33,6 @@ private: void OnEndSession(wxCloseEvent& event); void InitLanguageSupport(); void AfterInit(); - static bool DolphinEmulatorDotComTextFileExists(); bool m_batch_mode = false; bool m_confirm_stop = false; |
