mirror of
https://github.com/alexbatalov/fallout2-ce.git
synced 2024-11-01 23:26:57 +00:00
Change mmx detection
This commit is contained in:
parent
2f03d653fc
commit
2929a833bf
18
src/mmx.cc
18
src/mmx.cc
@ -9,23 +9,7 @@
|
||||
// 0x4E08A0
|
||||
bool mmxIsSupported()
|
||||
{
|
||||
int v1;
|
||||
|
||||
// TODO: There are other ways to determine MMX using FLAGS register.
|
||||
|
||||
#ifdef _WIN32
|
||||
__asm
|
||||
{
|
||||
mov eax, 1
|
||||
cpuid
|
||||
and edx, 0x800000
|
||||
mov v1, edx
|
||||
}
|
||||
#else
|
||||
v1 = 0;
|
||||
#endif
|
||||
|
||||
return v1 != 0;
|
||||
return SDL_HasMMX() == SDL_TRUE;
|
||||
}
|
||||
|
||||
// 0x4E0DB0
|
||||
|
Loading…
Reference in New Issue
Block a user