summaryrefslogtreecommitdiffstats
path: root/src/skel/glfw/glfw.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-28 10:56:30 +0200
committeraap <aap@papnet.eu>2020-04-28 10:56:30 +0200
commitc7e284560278a981ad2f1dd0374f03aed2c52e2a (patch)
tree1f72791859ddf0030e95681101e910028844b7cb /src/skel/glfw/glfw.cpp
parentMerge branch 'master' of github.com:gtamodding/re3 (diff)
downloadre3-c7e284560278a981ad2f1dd0374f03aed2c52e2a.tar
re3-c7e284560278a981ad2f1dd0374f03aed2c52e2a.tar.gz
re3-c7e284560278a981ad2f1dd0374f03aed2c52e2a.tar.bz2
re3-c7e284560278a981ad2f1dd0374f03aed2c52e2a.tar.lz
re3-c7e284560278a981ad2f1dd0374f03aed2c52e2a.tar.xz
re3-c7e284560278a981ad2f1dd0374f03aed2c52e2a.tar.zst
re3-c7e284560278a981ad2f1dd0374f03aed2c52e2a.zip
Diffstat (limited to 'src/skel/glfw/glfw.cpp')
-rw-r--r--src/skel/glfw/glfw.cpp79
1 files changed, 0 insertions, 79 deletions
diff --git a/src/skel/glfw/glfw.cpp b/src/skel/glfw/glfw.cpp
index db6be3a2..6359d22f 100644
--- a/src/skel/glfw/glfw.cpp
+++ b/src/skel/glfw/glfw.cpp
@@ -248,83 +248,6 @@ psNativeTextureSupport(void)
/*
*****************************************************************************
*/
-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");
-}
-
-/*
- *****************************************************************************
- */
#ifdef UNDER_CE
#define CMDSTR LPWSTR
#else
@@ -357,8 +280,6 @@ psInitialise(void)
gGameState = GS_START_UP;
TRACE("gGameState = GS_START_UP");
- _psPrintCpuInfo();
-
OSVERSIONINFO verInfo;
verInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);