mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-12-24 00:31:48 +01:00
removed cpuid stuff from glfw as they caused a crash by clobbering registers. what to do about win.cpp?
This commit is contained in:
parent
1180cc2947
commit
c7e2845602
@ -245,83 +245,6 @@ psNativeTextureSupport(void)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
*****************************************************************************
|
|
||||||
*/
|
|
||||||
static char cpuvendor[16] = "UnknownVendr";
|
|
||||||
__declspec(naked) const char * _psGetCpuVendr()
|
|
||||||
{
|
|
||||||
__asm
|
|
||||||
{
|
|
||||||
push ebx
|
|
||||||
xor eax, eax
|
|
||||||
cpuid
|
|
||||||
mov dword ptr [cpuvendor+0], ebx
|
|
||||||
mov dword ptr [cpuvendor+4], edx
|
|
||||||
mov dword ptr [cpuvendor+8], ecx
|
|
||||||
mov eax, offset cpuvendor
|
|
||||||
pop ebx
|
|
||||||
retn
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
*****************************************************************************
|
|
||||||
*/
|
|
||||||
__declspec(naked) RwUInt32 _psGetCpuFeatures()
|
|
||||||
{
|
|
||||||
__asm
|
|
||||||
{
|
|
||||||
mov eax, 1
|
|
||||||
cpuid
|
|
||||||
mov eax, edx
|
|
||||||
retn
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
*****************************************************************************
|
|
||||||
*/
|
|
||||||
__declspec(naked) RwUInt32 _psGetCpuFeaturesEx()
|
|
||||||
{
|
|
||||||
__asm
|
|
||||||
{
|
|
||||||
mov eax, 80000000h
|
|
||||||
cpuid
|
|
||||||
|
|
||||||
cmp eax, 80000000h
|
|
||||||
jbe short _NOEX
|
|
||||||
|
|
||||||
mov eax, 80000001h
|
|
||||||
cpuid
|
|
||||||
|
|
||||||
mov eax, edx
|
|
||||||
jmp short _RETEX
|
|
||||||
|
|
||||||
_NOEX:
|
|
||||||
xor eax, eax
|
|
||||||
mov eax, eax
|
|
||||||
|
|
||||||
_RETEX:
|
|
||||||
retn
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void _psPrintCpuInfo()
|
|
||||||
{
|
|
||||||
RwUInt32 features = _psGetCpuFeatures();
|
|
||||||
RwUInt32 FeaturesEx = _psGetCpuFeaturesEx();
|
|
||||||
|
|
||||||
debug("Running on a %s", _psGetCpuVendr());
|
|
||||||
|
|
||||||
if ( features & 0x800000 )
|
|
||||||
debug("with MMX");
|
|
||||||
if ( features & 0x2000000 )
|
|
||||||
debug("with SSE");
|
|
||||||
if ( FeaturesEx & 0x80000000 )
|
|
||||||
debug("with 3DNow");
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
*/
|
*/
|
||||||
@ -357,8 +280,6 @@ psInitialise(void)
|
|||||||
gGameState = GS_START_UP;
|
gGameState = GS_START_UP;
|
||||||
TRACE("gGameState = GS_START_UP");
|
TRACE("gGameState = GS_START_UP");
|
||||||
|
|
||||||
_psPrintCpuInfo();
|
|
||||||
|
|
||||||
OSVERSIONINFO verInfo;
|
OSVERSIONINFO verInfo;
|
||||||
verInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
|
verInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user