diff options
| author | Matthew Parlane <parlane@gmail.com> | 2012-12-31 15:53:12 +1300 |
|---|---|---|
| committer | Matthew Parlane <parlane@gmail.com> | 2012-12-31 15:53:12 +1300 |
| commit | 4f280d1ad831d545dcb7b26ea25d8d0d4c11ec5f (patch) | |
| tree | 762f42563ebd8b2d01e8c229a704a1dcf61e1917 /Source/Core | |
| parent | 21fa664c2d9aac2277fdb8326babbe19dce8e226 (diff) | |
| parent | 4c374cd58a00aed9091c323045058e7667eb71fd (diff) | |
Merge branch 'master' into wii-usb
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinWX/Src/Main.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/Src/Main.cpp b/Source/Core/DolphinWX/Src/Main.cpp index fc3e2c41a7..338ed59547 100644 --- a/Source/Core/DolphinWX/Src/Main.cpp +++ b/Source/Core/DolphinWX/Src/Main.cpp @@ -45,6 +45,10 @@ #include <wx/intl.h> +#ifdef _WIN32 +#include <shellapi.h> +#endif + // Nvidia drivers >= v302 will check if the application exports a global // variable named NvOptimusEnablement to know if it should run the app in high // performance graphics mode or using the IGP. @@ -264,6 +268,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(NULL, + 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(NULL, L"open", L"http://dolphin-emu.org/?ref=badver", NULL, NULL, SW_SHOWDEFAULT); + exit(0); + } +#endif + // The following is not needed with X11, where window managers // do not allow windows to be created off the desktop. #ifdef _WIN32 |
