- mingw based compiling seems to work again with this fix

This commit is contained in:
Mark Vejvoda
2011-04-05 07:32:36 +00:00
parent eaf10434b0
commit 22328e0666

View File

@@ -356,14 +356,14 @@ MainWindow::MainWindow( std::pair<string,vector<string> > unitToLoad,
//timer->Start(100); //timer->Start(100);
// For windows register g3d file extension to launch this app // For windows register g3d file extension to launch this app
#ifdef WIN32 #if defined(WIN32) && !defined(__MINGW32__)
// example from: http://stackoverflow.com/questions/1387769/create-registry-entry-to-associate-file-extension-with-application-in-c // example from: http://stackoverflow.com/questions/1387769/create-registry-entry-to-associate-file-extension-with-application-in-c
//[HKEY_CURRENT_USER\Software\Classes\blergcorp.blergapp.v1\shell\open\command] //[HKEY_CURRENT_USER\Software\Classes\blergcorp.blergapp.v1\shell\open\command]
//@="c:\path\to\app.exe \"%1\"" //@="c:\path\to\app.exe \"%1\""
//[HKEY_CURRENT_USER\Software\Classes\.blerg] //[HKEY_CURRENT_USER\Software\Classes\.blerg]
//@="blergcorp.blergapp.v1" //@="blergcorp.blergapp.v1"
//Open the registry key. //Open the registry key.
string subKey = "Software\\Classes\\megaglest.g3d\\shell\\open\\command"; string subKey = "Software\\Classes\\megaglest.g3d\\shell\\open\\command";
HKEY keyHandle; HKEY keyHandle;
DWORD dwDisposition; DWORD dwDisposition;