Skip to content

Commit

Permalink
Removed unused path functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
MiranDMC committed Sep 19, 2024
1 parent 683de0f commit 203af74
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions source/CCustomOpcodeSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ namespace CLEO

void(__thiscall * ProcessScript)(CRunningScript*);

void(__cdecl * ChangeToUserDir)();
void(__cdecl * ChangeToProgramDir)(const char *);

float(__cdecl * FindGroundZ)(float x, float y);
CMarker * RadarBlips;

Expand Down Expand Up @@ -214,8 +211,6 @@ namespace CLEO
MemWrite(gvm.TranslateMemoryAddress(MA_OPCODE_HANDLER_REF), &customOpcodeHandlers);
MemWrite(0x00469EF0, &customOpcodeHandlers); // TODO: game version translation

ChangeToUserDir = gvm.TranslateMemoryAddress(MA_CHANGE_TO_USER_DIR_FUNCTION);
ChangeToProgramDir = gvm.TranslateMemoryAddress(MA_CHANGE_TO_PROGRAM_DIR_FUNCTION);
FindGroundZ = gvm.TranslateMemoryAddress(MA_FIND_GROUND_Z_FUNCTION);
GetPlayerPed = gvm.TranslateMemoryAddress(MA_GET_PLAYER_PED_FUNCTION);
Handling = gvm.TranslateMemoryAddress(MA_HANDLING);
Expand Down
3 changes: 0 additions & 3 deletions source/CCustomOpcodeSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ namespace CLEO
{
typedef OpcodeResult(__stdcall * CustomOpcodeHandler)(CRunningScript*);

extern void(__cdecl* ChangeToUserDir)();
extern void(__cdecl* ChangeToProgramDir)(const char*);

class CCustomOpcodeSystem : public VInjectible
{
public:
Expand Down
2 changes: 0 additions & 2 deletions source/CGameVersionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ namespace CLEO
{ 0x00B74490, memory_und, 0x00B74490, 0x00B76B10, 0x00C01038 }, // MA_PED_POOL,
{ 0x00B74494, memory_und, 0x00B74494, 0x00B76B14, 0x00C0103C }, // MA_VEHICLE_POOL,
{ 0x00B7449C, memory_und, 0x00B7449C, 0x00B76B18, 0x00C01044 }, // MA_OBJECT_POOL,
{ 0x00538860, memory_und, 0x00538860, 0x00538D00, 0x0054A730 }, // MA_CHANGE_TO_USER_DIR_FUNCTION,
{ 0x005387D0, memory_und, 0x005387D0, 0x00538C70, 0x0054A680 }, // MA_CHANGE_TO_PROGRAM_DIR_FUNCTION,
{ 0x00569660, memory_und, 0x00569660, 0x00569B00, 0x00583CB0 }, // MA_FIND_GROUND_Z_FUNCTION,
{ 0x00BA86F0, memory_und, 0x00BA86F0, 0x00BAAD70, 0x00C36020 }, // MA_RADAR_BLIPS,
{ 0x00C2B9C8, memory_und, 0x00C2B9C8, 0x00C2E188, 0x00CAC1E0 }, // MA_HANDLING,
Expand Down
2 changes: 0 additions & 2 deletions source/CGameVersionManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ namespace CLEO
MA_PED_POOL,
MA_VEHICLE_POOL,
MA_OBJECT_POOL,
MA_CHANGE_TO_USER_DIR_FUNCTION,
MA_CHANGE_TO_PROGRAM_DIR_FUNCTION,
MA_FIND_GROUND_Z_FUNCTION,
MA_RADAR_BLIPS,
MA_HANDLING,
Expand Down

0 comments on commit 203af74

Please sign in to comment.