Moved Windows 8 64-Bit hack to a better place. MPress will not be fixed soon for Windows 8, so we will have to keep that hack for a while...

This commit is contained in:
LoRd_MuldeR 2011-10-21 16:17:22 +02:00
parent 4a9ee707b1
commit 0e6058df9e
6 changed files with 21 additions and 20 deletions

View File

@ -2709,17 +2709,17 @@
<context>
<name>QApplication</name>
<message>
<location filename="../../src/Global.cpp" line="705"/>
<location filename="../../src/Global.cpp" line="694"/>
<source>Executable &apos;%1&apos; doesn&apos;t support Windows compatibility mode.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Global.cpp" line="792"/>
<location filename="../../src/Global.cpp" line="781"/>
<source>Executable &apos;%1&apos; requires Qt v%2, but found Qt v%3.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../src/Global.cpp" line="801"/>
<location filename="../../src/Global.cpp" line="790"/>
<source>Executable &apos;%1&apos; requires Windows 2000 or later.</source>
<translation type="unfinished"></translation>
</message>

View File

@ -2709,17 +2709,17 @@
<context>
<name>QApplication</name>
<message>
<location filename="../../src/Global.cpp" line="705"/>
<location filename="../../src/Global.cpp" line="694"/>
<source>Executable &apos;%1&apos; doesn&apos;t support Windows compatibility mode.</source>
<translation type="unfinished">Plik wykonywalny &apos;%1&apos; nie działa w trybie kompatybilności z Windows.</translation>
</message>
<message>
<location filename="../../src/Global.cpp" line="792"/>
<location filename="../../src/Global.cpp" line="781"/>
<source>Executable &apos;%1&apos; requires Qt v%2, but found Qt v%3.</source>
<translation type="unfinished">Plik wykonywalny &apos;%1&apos; wymaga Qt v%2, znaleziono jednak Qt v%3.</translation>
</message>
<message>
<location filename="../../src/Global.cpp" line="801"/>
<location filename="../../src/Global.cpp" line="790"/>
<source>Executable &apos;%1&apos; requires Windows 2000 or later.</source>
<translation type="unfinished">Plik wykonywalny &apos;%1&apos; wymaga do uruchomienia Windows 2000 lub nowszego.</translation>
</message>

View File

@ -30,7 +30,7 @@
#define VER_LAMEXP_MINOR_LO 3
#define VER_LAMEXP_TYPE Beta
#define VER_LAMEXP_PATCH 6
#define VER_LAMEXP_BUILD 748
#define VER_LAMEXP_BUILD 750
///////////////////////////////////////////////////////////////////////////////
// Tools versions

View File

@ -320,7 +320,7 @@ const QDate &lamexp_version_date(void)
/*
* Get the native operating system version
*/
static DWORD lamexp_get_os_version(void)
DWORD lamexp_get_os_version(void)
{
OSVERSIONINFO osVerInfo;
memset(&osVerInfo, 0, sizeof(OSVERSIONINFO));
@ -621,19 +621,8 @@ lamexp_cpu_t lamexp_detect_cpu_features(int argc, char **argv)
features.count = systemInfo.dwNumberOfProcessors;
features.x64 = true;
#endif
//Hack to disable x64 on the Windows 8 Developer Preview
if(features.x64)
{
DWORD osVerNo = lamexp_get_os_version();
if((HIWORD(osVerNo) == 6) && (LOWORD(osVerNo) == 2))
{
qWarning("Windows 8 (x64) detected. Going to disable all x64 support for now!\n");
features.x64 = false;
}
}
if(argv)
if((argv != NULL) && (argc > 0))
{
bool flag = false;
for(int i = 0; i < argc; i++)

View File

@ -83,6 +83,7 @@ unsigned int lamexp_toolver_neroaac(void);
unsigned int lamexp_toolver_fhgaacenc(void);
const char *lamexp_website_url(void);
const char *lamexp_support_url(void);
DWORD lamexp_get_os_version(void);
//Public functions
void lamexp_init_console(int argc, char* argv[]);

View File

@ -74,6 +74,17 @@ void InitializationThread::run()
cpuSupport = m_cpuFeatures.x64 ? CPU_TYPE_X64_GEN : CPU_TYPE_X86_GEN;
}
//Hack to disable x64 on the Windows 8 Developer Preview
if(cpuSupport & CPU_TYPE_X64_ALL)
{
DWORD osVerNo = lamexp_get_os_version();
if((HIWORD(osVerNo) == 6) && (LOWORD(osVerNo) == 2))
{
qWarning("Windows 8 (x64) developer preview detected. Going to disable all x64 support!\n");
cpuSupport = (cpuSupport == CPU_TYPE_X64_SSE) ? CPU_TYPE_X86_SSE : CPU_TYPE_X86_GEN;
}
}
//Print selected CPU type
switch(cpuSupport)
{