manifest pragma to specify windows common controls version 6

(64-bit bit version uses older control styles without this)
This commit is contained in:
bbbradsmith 2020-06-18 05:04:38 -04:00 committed by Brad Smith
parent aa06113dac
commit 79c42a8eea
2 changed files with 10 additions and 1 deletions

View File

@ -85,7 +85,7 @@ void CloseGuiDialog(HWND hwndDlg)
" manifestVersion=\"1.0\">\n" " manifestVersion=\"1.0\">\n"
"<assemblyIdentity\n" "<assemblyIdentity\n"
" name=\"FCEUX\"\n" " name=\"FCEUX\"\n"
" processorArchitecture=\"x86\"\n" " processorArchitecture=\"*\"\n"
" version=\"1.0.0.0\"\n" " version=\"1.0.0.0\"\n"
" type=\"win32\"/>\n" " type=\"win32\"/>\n"
"<description>FCEUX</description>\n" "<description>FCEUX</description>\n"

View File

@ -112,6 +112,15 @@ extern bool taseditorEnableAcceleratorKeys;
#define __COMPILER__STRING__ "unknown" #define __COMPILER__STRING__ "unknown"
#endif #endif
// 64-bit build requires manifest to use common controls 6 (style adapts to windows version)
#pragma comment(linker, \
"\"/manifestdependency:type='win32' "\
"name='Microsoft.Windows.Common-Controls' "\
"version='6.0.0.0' "\
"processorArchitecture='*' "\
"publicKeyToken='6595b64144ccf1df' "\
"language='*'\"")
// External functions // External functions
extern std::string cfgFile; //Contains the filename of the config file used. extern std::string cfgFile; //Contains the filename of the config file used.
extern bool turbo; //Is game in turbo mode? extern bool turbo; //Is game in turbo mode?