Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Optimized the Dolphin SEO process a bit
  • Loading branch information
delroth committed Dec 31, 2012
1 parent 71bb297 commit bcf1f54
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Source/Core/DolphinWX/Src/Main.cpp
Expand Up @@ -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.
Expand Down Expand Up @@ -264,6 +268,18 @@ 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"))
{
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
Expand Down

0 comments on commit bcf1f54

Please sign in to comment.