summaryrefslogtreecommitdiffstats
path: root/src/skel
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2019-06-02 15:33:37 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2019-06-02 15:33:37 +0200
commitcaa61ad10bd9142bfa5b10bf331ce5fa76cd5680 (patch)
treead3b779373de3825d565ea6e9dfda99d1b33d29d /src/skel
parentMerge pull request #1 from GTAmodding/master (diff)
downloadre3-caa61ad10bd9142bfa5b10bf331ce5fa76cd5680.tar
re3-caa61ad10bd9142bfa5b10bf331ce5fa76cd5680.tar.gz
re3-caa61ad10bd9142bfa5b10bf331ce5fa76cd5680.tar.bz2
re3-caa61ad10bd9142bfa5b10bf331ce5fa76cd5680.tar.lz
re3-caa61ad10bd9142bfa5b10bf331ce5fa76cd5680.tar.xz
re3-caa61ad10bd9142bfa5b10bf331ce5fa76cd5680.tar.zst
re3-caa61ad10bd9142bfa5b10bf331ce5fa76cd5680.zip
Diffstat (limited to 'src/skel')
-rw-r--r--src/skel/win/win.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/skel/win/win.cpp b/src/skel/win/win.cpp
index 9d71861b..3da16f92 100644
--- a/src/skel/win/win.cpp
+++ b/src/skel/win/win.cpp
@@ -73,7 +73,9 @@ typedef struct
}
psGlobalType;
-static psGlobalType PsGlobal;
+//static psGlobalType PsGlobal;
+static psGlobalType &PsGlobal = *(psGlobalType*)0x72CF60;
+
#define PSGLOBAL(var) (((psGlobalType *)(RsGlobal.ps))->var)
@@ -99,6 +101,8 @@ static psGlobalType PsGlobal;
#include "PCSave.h"
#include "Sprite2D.h"
+VALIDATE_SIZE(psGlobalType, 0x28);
+
// DirectShow interfaces
IGraphBuilder *pGB = NULL;
IMediaControl *pMC = NULL;
@@ -575,8 +579,6 @@ psInitialise(void)
{
PsGlobal.lastMousePos.x = PsGlobal.lastMousePos.y = 0.0;
- PsGlobal.fullScreen = FALSE;
-
RsGlobal.ps = &PsGlobal;
PsGlobal.fullScreen = FALSE;