mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 23:45:14 +02:00
- mingw based compiling seems to work again with this fix
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user