More refs removed
This commit is contained in:
parent
4b602940eb
commit
b1fc7bc533
@ -6,7 +6,7 @@
|
|||||||
#include "AnimBlendAssociation.h"
|
#include "AnimBlendAssociation.h"
|
||||||
#include "RpAnimBlend.h"
|
#include "RpAnimBlend.h"
|
||||||
|
|
||||||
CAnimBlendClumpData *&gpAnimBlendClump = *(CAnimBlendClumpData**)0x621000;
|
CAnimBlendClumpData *gpAnimBlendClump;
|
||||||
|
|
||||||
void FrameUpdateCallBack(AnimBlendFrameData *frame, void *arg);
|
void FrameUpdateCallBack(AnimBlendFrameData *frame, void *arg);
|
||||||
void FrameUpdateCallBackWithVelocityExtraction(AnimBlendFrameData *frame, void *arg);
|
void FrameUpdateCallBackWithVelocityExtraction(AnimBlendFrameData *frame, void *arg);
|
||||||
|
@ -37,5 +37,5 @@ CAnimBlendAssociation *RpAnimBlendClumpGetFirstAssociation(RpClump *clump);
|
|||||||
void RpAnimBlendClumpUpdateAnimations(RpClump* clump, float timeDelta);
|
void RpAnimBlendClumpUpdateAnimations(RpClump* clump, float timeDelta);
|
||||||
|
|
||||||
|
|
||||||
extern CAnimBlendClumpData *&gpAnimBlendClump;
|
extern CAnimBlendClumpData *gpAnimBlendClump;
|
||||||
void FrameUpdateCallBack(AnimBlendFrameData *frame, void *arg);
|
void FrameUpdateCallBack(AnimBlendFrameData *frame, void *arg);
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
#include "sampman.h"
|
#include "sampman.h"
|
||||||
#include "patcher.h"
|
#include "patcher.h"
|
||||||
|
|
||||||
cMusicManager &MusicManager = *(cMusicManager *)0x8F3964;
|
cMusicManager MusicManager;
|
||||||
int32 &gNumRetunePresses = *(int32 *)0x650B80;
|
int32 gNumRetunePresses;
|
||||||
int32 &gRetuneCounter = *(int32*)0x650B84;
|
int32 gRetuneCounter;
|
||||||
bool& bHasStarted = *(bool*)0x650B7C;
|
bool bHasStarted;
|
||||||
|
|
||||||
const int maxVolume = 127;
|
const int maxVolume = 127;
|
||||||
|
|
||||||
|
@ -86,4 +86,4 @@ public:
|
|||||||
|
|
||||||
static_assert(sizeof(cMusicManager) == 0x95C, "cMusicManager: error");
|
static_assert(sizeof(cMusicManager) == 0x95C, "cMusicManager: error");
|
||||||
|
|
||||||
extern cMusicManager &MusicManager;
|
extern cMusicManager MusicManager;
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
#include "SceneEdit.h"
|
#include "SceneEdit.h"
|
||||||
#include "Pools.h"
|
#include "Pools.h"
|
||||||
#include "Debug.h"
|
#include "Debug.h"
|
||||||
|
#include "GenericGameStorage.h"
|
||||||
#include "Camera.h"
|
#include "Camera.h"
|
||||||
|
|
||||||
enum
|
enum
|
||||||
|
@ -16,11 +16,8 @@ extern char *gString;
|
|||||||
extern char *gString2;
|
extern char *gString2;
|
||||||
extern wchar *gUString;
|
extern wchar *gUString;
|
||||||
extern wchar *gUString2;
|
extern wchar *gUString2;
|
||||||
extern bool &b_FoundRecentSavedGameWantToLoad;
|
|
||||||
extern bool gbPrintShite;
|
extern bool gbPrintShite;
|
||||||
extern bool &gbModelViewer;
|
extern bool &gbModelViewer;
|
||||||
extern bool &StillToFadeOut;
|
|
||||||
extern bool &JustLoadedDontFadeInYet;
|
|
||||||
|
|
||||||
class CSprite2d;
|
class CSprite2d;
|
||||||
|
|
||||||
|
@ -9,18 +9,18 @@
|
|||||||
#include "ZoneCull.h"
|
#include "ZoneCull.h"
|
||||||
#include "Frontend.h"
|
#include "Frontend.h"
|
||||||
|
|
||||||
RpLight *&pAmbient = *(RpLight**)0x885B6C;
|
RpLight *pAmbient;// = *(RpLight**)0x885B6C;
|
||||||
RpLight *&pDirect = *(RpLight**)0x880F7C;
|
RpLight *pDirect;// = *(RpLight**)0x880F7C;
|
||||||
RpLight **pExtraDirectionals = (RpLight**)0x60009C;
|
RpLight *pExtraDirectionals[] = { nil, nil, nil, nil };// = (RpLight**)0x60009C;
|
||||||
int *LightStrengths = (int*)0x87BEF0;
|
int LightStrengths[4];// = (int*)0x87BEF0;
|
||||||
int &NumExtraDirLightsInWorld = *(int*)0x64C608;
|
int NumExtraDirLightsInWorld;// = *(int*)0x64C608;
|
||||||
|
|
||||||
RwRGBAReal &AmbientLightColourForFrame = *(RwRGBAReal*)0x6F46F8;
|
RwRGBAReal AmbientLightColourForFrame;// = *(RwRGBAReal*)0x6F46F8;
|
||||||
RwRGBAReal &AmbientLightColourForFrame_PedsCarsAndObjects = *(RwRGBAReal*)0x6F1D10;
|
RwRGBAReal AmbientLightColourForFrame_PedsCarsAndObjects;// = *(RwRGBAReal*)0x6F1D10;
|
||||||
RwRGBAReal &DirectionalLightColourForFrame = *(RwRGBAReal*)0x87C6B8;
|
RwRGBAReal DirectionalLightColourForFrame;// = *(RwRGBAReal*)0x87C6B8;
|
||||||
|
|
||||||
RwRGBAReal &AmbientLightColour = *(RwRGBAReal*)0x86B0F8;
|
RwRGBAReal AmbientLightColour;// = *(RwRGBAReal*)0x86B0F8;
|
||||||
RwRGBAReal &DirectionalLightColour = *(RwRGBAReal*)0x72E308;
|
RwRGBAReal DirectionalLightColour;// = *(RwRGBAReal*)0x72E308;
|
||||||
|
|
||||||
void
|
void
|
||||||
SetLightsWithTimeOfDayColour(RpWorld *)
|
SetLightsWithTimeOfDayColour(RpWorld *)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#include "patcher.h"
|
#include "patcher.h"
|
||||||
#include "NodeName.h"
|
#include "NodeName.h"
|
||||||
|
|
||||||
static int32 &gPluginOffset = *(int32*)0x64C610;
|
static int32 gPluginOffset;// = *(int32*)0x64C610;
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
@ -22,8 +22,8 @@
|
|||||||
#include "RwHelper.h"
|
#include "RwHelper.h"
|
||||||
#endif //GTA_PC
|
#endif //GTA_PC
|
||||||
|
|
||||||
float &texLoadTime = *(float*)0x8F1B50;
|
float texLoadTime;// = *(float*)0x8F1B50;
|
||||||
int32 &texNumLoaded = *(int32*)0x8F252C;
|
int32 texNumLoaded;// = *(int32*)0x8F252C;
|
||||||
|
|
||||||
#ifdef LIBRW
|
#ifdef LIBRW
|
||||||
#define READNATIVE(stream, tex, size) rwNativeTextureHackRead(stream, tex, size)
|
#define READNATIVE(stream, tex, size) rwNativeTextureHackRead(stream, tex, size)
|
||||||
@ -155,7 +155,11 @@ RwTexDictionaryGtaStreamRead2(RwStream *stream, RwTexDictionary *texDict)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef GTA_PC
|
#ifdef GTA_PC
|
||||||
|
#ifdef RWLIBS
|
||||||
|
extern "C" RwInt32 _rwD3D8FindCorrectRasterFormat(RwRasterType type, RwInt32 flags);
|
||||||
|
#else
|
||||||
|
RwInt32 _rwD3D8FindCorrectRasterFormat(RwRasterType type, RwInt32 flags);
|
||||||
|
#endif
|
||||||
void
|
void
|
||||||
ReadVideoCardCapsFile(uint32 &cap32, uint32 &cap24, uint32 &cap16, uint32 &cap8)
|
ReadVideoCardCapsFile(uint32 &cap32, uint32 &cap24, uint32 &cap16, uint32 &cap8)
|
||||||
{
|
{
|
||||||
@ -174,8 +178,6 @@ ReadVideoCardCapsFile(uint32 &cap32, uint32 &cap24, uint32 &cap16, uint32 &cap8)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RwInt32 _rwD3D8FindCorrectRasterFormat(RwRasterType type, RwInt32 flags);
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
CheckVideoCardCaps(void)
|
CheckVideoCardCaps(void)
|
||||||
{
|
{
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
#include "RwHelper.h"
|
#include "RwHelper.h"
|
||||||
#include "TxdStore.h"
|
#include "TxdStore.h"
|
||||||
|
|
||||||
CPool<TxdDef,TxdDef> *&CTxdStore::ms_pTxdPool = *(CPool<TxdDef,TxdDef>**)0x8F5FB8;
|
CPool<TxdDef,TxdDef> *CTxdStore::ms_pTxdPool;// = *(CPool<TxdDef,TxdDef>**)0x8F5FB8;
|
||||||
RwTexDictionary *&CTxdStore::ms_pStoredTxd = *(RwTexDictionary**)0x9405BC;
|
RwTexDictionary *CTxdStore::ms_pStoredTxd;// = *(RwTexDictionary**)0x9405BC;
|
||||||
|
|
||||||
void
|
void
|
||||||
CTxdStore::Initialise(void)
|
CTxdStore::Initialise(void)
|
||||||
|
@ -10,8 +10,8 @@ struct TxdDef {
|
|||||||
|
|
||||||
class CTxdStore
|
class CTxdStore
|
||||||
{
|
{
|
||||||
static CPool<TxdDef,TxdDef> *&ms_pTxdPool;
|
static CPool<TxdDef,TxdDef> *ms_pTxdPool;
|
||||||
static RwTexDictionary *&ms_pStoredTxd;
|
static RwTexDictionary *ms_pStoredTxd;
|
||||||
public:
|
public:
|
||||||
static void Initialise(void);
|
static void Initialise(void);
|
||||||
static void Shutdown(void);
|
static void Shutdown(void);
|
||||||
|
@ -11,32 +11,24 @@
|
|||||||
|
|
||||||
#define FADE_DISTANCE 20.0f
|
#define FADE_DISTANCE 20.0f
|
||||||
|
|
||||||
/*
|
CLinkList<CVisibilityPlugins::AlphaObjectInfo> CVisibilityPlugins::m_alphaList;// = *(CLinkList<CVisibilityPlugins::AlphaObjectInfo>*)0x8F42E4;
|
||||||
CLinkList<CVisibilityPlugins::AlphaObjectInfo> CVisibilityPlugins::m_alphaList;
|
CLinkList<CVisibilityPlugins::AlphaObjectInfo> CVisibilityPlugins::m_alphaEntityList;// = *(CLinkList<CVisibilityPlugins::AlphaObjectInfo>*)0x943084;
|
||||||
CLinkList<CVisibilityPlugins::AlphaObjectInfo> CVisibilityPlugins::m_alphaEntityList;
|
|
||||||
|
|
||||||
int32 CVisibilityPlugins::ms_atomicPluginOffset = -1;
|
int32 CVisibilityPlugins::ms_atomicPluginOffset = -1;// = *(int32*)0x600124;
|
||||||
int32 CVisibilityPlugins::ms_framePluginOffset = -1;
|
int32 CVisibilityPlugins::ms_framePluginOffset = -1;// = *(int32*)0x600128;
|
||||||
int32 CVisibilityPlugins::ms_clumpPluginOffset = -1;
|
int32 CVisibilityPlugins::ms_clumpPluginOffset = -1;// = *(int32*)0x60012C;
|
||||||
*/
|
|
||||||
CLinkList<CVisibilityPlugins::AlphaObjectInfo> &CVisibilityPlugins::m_alphaList = *(CLinkList<CVisibilityPlugins::AlphaObjectInfo>*)0x8F42E4;
|
|
||||||
CLinkList<CVisibilityPlugins::AlphaObjectInfo> &CVisibilityPlugins::m_alphaEntityList = *(CLinkList<CVisibilityPlugins::AlphaObjectInfo>*)0x943084;
|
|
||||||
|
|
||||||
int32 &CVisibilityPlugins::ms_atomicPluginOffset = *(int32*)0x600124;
|
RwCamera *CVisibilityPlugins::ms_pCamera;// = *(RwCamera**)0x8F2514;
|
||||||
int32 &CVisibilityPlugins::ms_framePluginOffset = *(int32*)0x600128;
|
RwV3d *CVisibilityPlugins::ms_pCameraPosn;// = *(RwV3d**)0x8F6270;
|
||||||
int32 &CVisibilityPlugins::ms_clumpPluginOffset = *(int32*)0x60012C;
|
float CVisibilityPlugins::ms_cullCompsDist;// = *(float*)0x8F2BC4;
|
||||||
|
float CVisibilityPlugins::ms_vehicleLod0Dist;// = *(float*)0x885B28;
|
||||||
RwCamera *&CVisibilityPlugins::ms_pCamera = *(RwCamera**)0x8F2514;
|
float CVisibilityPlugins::ms_vehicleLod1Dist;// = *(float*)0x885B30;
|
||||||
RwV3d *&CVisibilityPlugins::ms_pCameraPosn = *(RwV3d**)0x8F6270;
|
float CVisibilityPlugins::ms_vehicleFadeDist;// = *(float*)0x8E28B4;
|
||||||
float &CVisibilityPlugins::ms_cullCompsDist = *(float*)0x8F2BC4;
|
float CVisibilityPlugins::ms_bigVehicleLod0Dist;// = *(float*)0x8E2A84;
|
||||||
float &CVisibilityPlugins::ms_vehicleLod0Dist = *(float*)0x885B28;
|
float CVisibilityPlugins::ms_bigVehicleLod1Dist;// = *(float*)0x8E2A8C;
|
||||||
float &CVisibilityPlugins::ms_vehicleLod1Dist = *(float*)0x885B30;
|
float CVisibilityPlugins::ms_pedLod0Dist;// = *(float*)0x8F2BD4;
|
||||||
float &CVisibilityPlugins::ms_vehicleFadeDist = *(float*)0x8E28B4;
|
float CVisibilityPlugins::ms_pedLod1Dist;// = *(float*)0x8F2BD8;
|
||||||
float &CVisibilityPlugins::ms_bigVehicleLod0Dist = *(float*)0x8E2A84;
|
float CVisibilityPlugins::ms_pedFadeDist;// = *(float*)0x8E2C34;
|
||||||
float &CVisibilityPlugins::ms_bigVehicleLod1Dist = *(float*)0x8E2A8C;
|
|
||||||
float &CVisibilityPlugins::ms_pedLod0Dist = *(float*)0x8F2BD4;
|
|
||||||
float &CVisibilityPlugins::ms_pedLod1Dist = *(float*)0x8F2BD8;
|
|
||||||
float &CVisibilityPlugins::ms_pedFadeDist = *(float*)0x8E2C34;
|
|
||||||
|
|
||||||
void
|
void
|
||||||
CVisibilityPlugins::Initialise(void)
|
CVisibilityPlugins::Initialise(void)
|
||||||
@ -602,6 +594,16 @@ CVisibilityPlugins::DefaultVisibilityCB(RpClump *clump)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
CVisibilityPlugins::MloVisibilityCB(RpClump *clump)
|
||||||
|
{
|
||||||
|
RwFrame *frame = RpClumpGetFrame(clump);
|
||||||
|
CMloModelInfo *modelInfo = (CMloModelInfo*)GetFrameHierarchyId(frame);
|
||||||
|
if (sq(modelInfo->field_34) < GetDistanceSquaredFromCamera(frame))
|
||||||
|
return false;
|
||||||
|
return CVisibilityPlugins::FrustumSphereCB(clump);
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
CVisibilityPlugins::FrustumSphereCB(RpClump *clump)
|
CVisibilityPlugins::FrustumSphereCB(RpClump *clump)
|
||||||
{
|
{
|
||||||
|
@ -20,19 +20,19 @@ public:
|
|||||||
float sort;
|
float sort;
|
||||||
};
|
};
|
||||||
|
|
||||||
static CLinkList<AlphaObjectInfo> &m_alphaList;
|
static CLinkList<AlphaObjectInfo> m_alphaList;
|
||||||
static CLinkList<AlphaObjectInfo> &m_alphaEntityList;
|
static CLinkList<AlphaObjectInfo> m_alphaEntityList;
|
||||||
static RwCamera *&ms_pCamera;
|
static RwCamera *ms_pCamera;
|
||||||
static RwV3d *&ms_pCameraPosn;
|
static RwV3d *ms_pCameraPosn;
|
||||||
static float &ms_cullCompsDist;
|
static float ms_cullCompsDist;
|
||||||
static float &ms_vehicleLod0Dist;
|
static float ms_vehicleLod0Dist;
|
||||||
static float &ms_vehicleLod1Dist;
|
static float ms_vehicleLod1Dist;
|
||||||
static float &ms_vehicleFadeDist;
|
static float ms_vehicleFadeDist;
|
||||||
static float &ms_bigVehicleLod0Dist;
|
static float ms_bigVehicleLod0Dist;
|
||||||
static float &ms_bigVehicleLod1Dist;
|
static float ms_bigVehicleLod1Dist;
|
||||||
static float &ms_pedLod0Dist;
|
static float ms_pedLod0Dist;
|
||||||
static float &ms_pedLod1Dist;
|
static float ms_pedLod1Dist;
|
||||||
static float &ms_pedFadeDist;
|
static float ms_pedFadeDist;
|
||||||
|
|
||||||
static void Initialise(void);
|
static void Initialise(void);
|
||||||
static void Shutdown(void);
|
static void Shutdown(void);
|
||||||
@ -70,7 +70,7 @@ public:
|
|||||||
// All actually unused
|
// All actually unused
|
||||||
static bool DefaultVisibilityCB(RpClump *clump);
|
static bool DefaultVisibilityCB(RpClump *clump);
|
||||||
static bool FrustumSphereCB(RpClump *clump);
|
static bool FrustumSphereCB(RpClump *clump);
|
||||||
// static bool MloVisibilityCB(RpClump *clump);
|
static bool MloVisibilityCB(RpClump *clump);
|
||||||
static bool VehicleVisibilityCB(RpClump *clump);
|
static bool VehicleVisibilityCB(RpClump *clump);
|
||||||
static bool VehicleVisibilityCB_BigVehicle(RpClump *clump);
|
static bool VehicleVisibilityCB_BigVehicle(RpClump *clump);
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ public:
|
|||||||
static void *AtomicDestructor(void *object, int32 offset, int32 len);
|
static void *AtomicDestructor(void *object, int32 offset, int32 len);
|
||||||
static void *AtomicCopyConstructor(void *dst, const void *src,
|
static void *AtomicCopyConstructor(void *dst, const void *src,
|
||||||
int32 offset, int32 len);
|
int32 offset, int32 len);
|
||||||
static int32 &ms_atomicPluginOffset;
|
static int32 ms_atomicPluginOffset;
|
||||||
|
|
||||||
struct FrameExt
|
struct FrameExt
|
||||||
{
|
{
|
||||||
@ -111,7 +111,7 @@ public:
|
|||||||
static void *FrameDestructor(void *object, int32 offset, int32 len);
|
static void *FrameDestructor(void *object, int32 offset, int32 len);
|
||||||
static void *FrameCopyConstructor(void *dst, const void *src,
|
static void *FrameCopyConstructor(void *dst, const void *src,
|
||||||
int32 offset, int32 len);
|
int32 offset, int32 len);
|
||||||
static int32 &ms_framePluginOffset;
|
static int32 ms_framePluginOffset;
|
||||||
|
|
||||||
// Not actually used
|
// Not actually used
|
||||||
struct ClumpExt
|
struct ClumpExt
|
||||||
@ -127,7 +127,7 @@ public:
|
|||||||
static void *ClumpDestructor(void *object, int32 offset, int32 len);
|
static void *ClumpDestructor(void *object, int32 offset, int32 len);
|
||||||
static void *ClumpCopyConstructor(void *dst, const void *src,
|
static void *ClumpCopyConstructor(void *dst, const void *src,
|
||||||
int32 offset, int32 len);
|
int32 offset, int32 len);
|
||||||
static int32 &ms_clumpPluginOffset;
|
static int32 ms_clumpPluginOffset;
|
||||||
|
|
||||||
static bool PluginAttach(void);
|
static bool PluginAttach(void);
|
||||||
};
|
};
|
||||||
|
@ -40,22 +40,22 @@
|
|||||||
|
|
||||||
const uint32 SIZE_OF_ONE_GAME_IN_BYTES = 201729;
|
const uint32 SIZE_OF_ONE_GAME_IN_BYTES = 201729;
|
||||||
|
|
||||||
char (&DefaultPCSaveFileName)[260] = *(char(*)[260])*(uintptr*)0x8E28C0;
|
char DefaultPCSaveFileName[260];// = *(char(*)[260]) * (uintptr*)0x8E28C0;
|
||||||
char (&ValidSaveName)[260] = *(char(*)[260])*(uintptr*)0x8E2CBC;
|
char ValidSaveName[260];// = *(char(*)[260])*(uintptr*)0x8E2CBC;
|
||||||
char (&LoadFileName)[256] = *(char(*)[256])*(uintptr*)0x9403C4;
|
char LoadFileName[256];// = *(char(*)[256])*(uintptr*)0x9403C4;
|
||||||
wchar (&SlotFileName)[SLOT_COUNT][260] = *(wchar(*)[SLOT_COUNT][260])*(uintptr*)0x6F07C8;
|
wchar SlotFileName[SLOT_COUNT][260];// = *(wchar(*)[SLOT_COUNT][260])*(uintptr*)0x6F07C8;
|
||||||
wchar (&SlotSaveDate)[SLOT_COUNT][70] = *(wchar(*)[SLOT_COUNT][70])*(uintptr*)0x72B858;
|
wchar SlotSaveDate[SLOT_COUNT][70];// = *(wchar(*)[SLOT_COUNT][70])*(uintptr*)0x72B858;
|
||||||
int &CheckSum = *(int*)0x8E2BE0;
|
int CheckSum;// = *(int*)0x8E2BE0;
|
||||||
eLevelName &m_LevelToLoad = *(eLevelName*)0x8E29CC;
|
eLevelName m_LevelToLoad;// = *(eLevelName*)0x8E29CC;
|
||||||
char SaveFileNameJustSaved[260];
|
char SaveFileNameJustSaved[260];
|
||||||
int (&Slots)[SLOT_COUNT+1] = *(int(*)[SLOT_COUNT+1])*(uintptr*)0x72803C;
|
int Slots[SLOT_COUNT+1];// = *(int(*)[SLOT_COUNT+1])*(uintptr*)0x72803C;
|
||||||
CDate &CompileDateAndTime = *(CDate*)0x72BCB8;
|
CDate CompileDateAndTime;// = *(CDate*)0x72BCB8;
|
||||||
|
|
||||||
bool &b_FoundRecentSavedGameWantToLoad = *(bool*)0x95CDA8;
|
bool b_FoundRecentSavedGameWantToLoad;// = *(bool*)0x95CDA8;
|
||||||
bool &JustLoadedDontFadeInYet = *(bool*)0x95CDB4;
|
bool JustLoadedDontFadeInYet;// = *(bool*)0x95CDB4;
|
||||||
bool &StillToFadeOut = *(bool*)0x95CD99;
|
bool StillToFadeOut;// = *(bool*)0x95CD99;
|
||||||
uint32 &TimeStartedCountingForFade = *(uint32*)0x9430EC;
|
uint32 TimeStartedCountingForFade;// = *(uint32*)0x9430EC;
|
||||||
uint32 &TimeToStayFadedBeforeFadeOut = *(uint32*)0x611564;
|
uint32 TimeToStayFadedBeforeFadeOut = 1750;// = *(uint32*)0x611564;
|
||||||
|
|
||||||
#define ReadDataFromBufferPointer(buf, to) memcpy(&to, buf, sizeof(to)); buf += align4bytes(sizeof(to));
|
#define ReadDataFromBufferPointer(buf, to) memcpy(&to, buf, sizeof(to)); buf += align4bytes(sizeof(to));
|
||||||
#define WriteDataToBufferPointer(buf, from) memcpy(buf, &from, sizeof(from)); buf += align4bytes(sizeof(from));
|
#define WriteDataToBufferPointer(buf, from) memcpy(buf, &from, sizeof(from)); buf += align4bytes(sizeof(from));
|
||||||
|
@ -21,22 +21,22 @@ bool CheckDataNotCorrupt(int32 slot, char *name);
|
|||||||
bool RestoreForStartLoad();
|
bool RestoreForStartLoad();
|
||||||
int align4bytes(int32 size);
|
int align4bytes(int32 size);
|
||||||
|
|
||||||
extern class CDate& CompileDateAndTime;
|
extern class CDate CompileDateAndTime;
|
||||||
|
|
||||||
extern char (&DefaultPCSaveFileName)[260];
|
extern char DefaultPCSaveFileName[260];
|
||||||
extern char (&ValidSaveName)[260];
|
extern char ValidSaveName[260];
|
||||||
extern char (&LoadFileName)[256];
|
extern char LoadFileName[256];
|
||||||
extern wchar (&SlotFileName)[SLOT_COUNT][260];
|
extern wchar SlotFileName[SLOT_COUNT][260];
|
||||||
extern wchar (&SlotSaveDate)[SLOT_COUNT][70];
|
extern wchar SlotSaveDate[SLOT_COUNT][70];
|
||||||
extern int &CheckSum;
|
extern int CheckSum;
|
||||||
extern enum eLevelName &m_LevelToLoad;
|
extern enum eLevelName m_LevelToLoad;
|
||||||
extern int (&Slots)[SLOT_COUNT+1];
|
extern int Slots[SLOT_COUNT+1];
|
||||||
|
|
||||||
extern bool &b_FoundRecentSavedGameWantToLoad;
|
extern bool b_FoundRecentSavedGameWantToLoad;
|
||||||
extern bool &JustLoadedDontFadeInYet;
|
extern bool JustLoadedDontFadeInYet;
|
||||||
extern bool &StillToFadeOut;
|
extern bool StillToFadeOut;
|
||||||
extern uint32 &TimeStartedCountingForFade;
|
extern uint32 TimeStartedCountingForFade;
|
||||||
extern uint32 &TimeToStayFadedBeforeFadeOut;
|
extern uint32 TimeToStayFadedBeforeFadeOut;
|
||||||
|
|
||||||
extern char SaveFileNameJustSaved[260]; // 8F2570
|
extern char SaveFileNameJustSaved[260]; // 8F2570
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
const char* _psGetUserFilesFolder();
|
const char* _psGetUserFilesFolder();
|
||||||
|
|
||||||
C_PcSave &PcSaveHelper = *(C_PcSave*)0x8E2C60;
|
C_PcSave PcSaveHelper;// = *(C_PcSave*)0x8E2C60;
|
||||||
|
|
||||||
void
|
void
|
||||||
C_PcSave::SetSaveDirectory(const char *path)
|
C_PcSave::SetSaveDirectory(const char *path)
|
||||||
|
@ -37,4 +37,4 @@ public:
|
|||||||
static void SetSaveDirectory(const char *path);
|
static void SetSaveDirectory(const char *path);
|
||||||
};
|
};
|
||||||
|
|
||||||
extern C_PcSave &PcSaveHelper;
|
extern C_PcSave PcSaveHelper;
|
||||||
|
@ -12,9 +12,9 @@
|
|||||||
|
|
||||||
#include "ControllerConfig.h"
|
#include "ControllerConfig.h"
|
||||||
|
|
||||||
tMessage(&CMessages::BriefMessages)[NUMBRIEFMESSAGES] = *(tMessage(*)[NUMBRIEFMESSAGES])*(uintptr*)0x8786E0;
|
tMessage CMessages::BriefMessages[NUMBRIEFMESSAGES];// = *(tMessage(*)[NUMBRIEFMESSAGES]) * (uintptr*)0x8786E0;
|
||||||
tPreviousBrief(&CMessages::PreviousBriefs)[NUMPREVIOUSBRIEFS] = *(tPreviousBrief(*)[NUMPREVIOUSBRIEFS])*(uintptr*)0x713C08;
|
tPreviousBrief CMessages::PreviousBriefs[NUMPREVIOUSBRIEFS];// = *(tPreviousBrief(*)[NUMPREVIOUSBRIEFS]) * (uintptr*)0x713C08;
|
||||||
tBigMessage(&CMessages::BIGMessages)[NUMBIGMESSAGES] = *(tBigMessage(*)[NUMBIGMESSAGES])*(uintptr*)0x773628;
|
tBigMessage CMessages::BIGMessages[NUMBIGMESSAGES];// = *(tBigMessage(*)[NUMBIGMESSAGES]) * (uintptr*)0x773628;
|
||||||
char CMessages::PreviousMissionTitle[16]; // unused
|
char CMessages::PreviousMissionTitle[16]; // unused
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -29,9 +29,9 @@ struct tPreviousBrief
|
|||||||
class CMessages
|
class CMessages
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static tMessage(&BriefMessages)[NUMBRIEFMESSAGES];
|
static tMessage BriefMessages[NUMBRIEFMESSAGES];
|
||||||
static tBigMessage(&BIGMessages)[NUMBIGMESSAGES];
|
static tBigMessage BIGMessages[NUMBIGMESSAGES];
|
||||||
static tPreviousBrief(&PreviousBriefs)[NUMPREVIOUSBRIEFS];
|
static tPreviousBrief PreviousBriefs[NUMPREVIOUSBRIEFS];
|
||||||
static char PreviousMissionTitle[16]; // unused
|
static char PreviousMissionTitle[16]; // unused
|
||||||
public:
|
public:
|
||||||
static void Init(void);
|
static void Init(void);
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
static wchar WideErrorString[25];
|
static wchar WideErrorString[25];
|
||||||
|
|
||||||
CText &TheText = *(CText*)0x941520;
|
CText TheText;// = *(CText*)0x941520;
|
||||||
|
|
||||||
CText::CText(void)
|
CText::CText(void)
|
||||||
{
|
{
|
||||||
|
@ -56,4 +56,4 @@ public:
|
|||||||
void UpperCase(wchar *s);
|
void UpperCase(wchar *s);
|
||||||
};
|
};
|
||||||
|
|
||||||
extern CText &TheText;
|
extern CText TheText;
|
||||||
|
Loading…
Reference in New Issue
Block a user