2023-10-20 06:46:57 +08:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-11-08 20:10:20 +08:00
|
|
|
#include <stdio.h>
|
2023-10-20 06:46:57 +08:00
|
|
|
#include <windows.h>
|
2023-11-08 20:10:20 +08:00
|
|
|
#include <process.h>
|
2023-10-20 06:46:57 +08:00
|
|
|
|
2024-03-22 23:47:43 +08:00
|
|
|
#define SAFE_DELETE(p) { if (p) { delete (p); (p) = NULL; } }
|
|
|
|
|
2023-10-20 06:46:57 +08:00
|
|
|
#define MAX_SETTINGS_STRING 256
|
|
|
|
|
2023-11-15 18:46:57 +08:00
|
|
|
#define GTASA_VERSION_UNKNOWN 0
|
|
|
|
#define GTASA_VERSION_USA10 1
|
|
|
|
#define GTASA_VERSION_EU10 2
|
|
|
|
|
2023-10-20 06:46:57 +08:00
|
|
|
typedef struct _GAME_SETTINGS {
|
|
|
|
BOOL bDebug;
|
|
|
|
BOOL bPlayOnline;
|
|
|
|
BOOL bWindowedMode;
|
|
|
|
CHAR szConnectPass[MAX_SETTINGS_STRING+1];
|
|
|
|
CHAR szConnectHost[MAX_SETTINGS_STRING+1];
|
|
|
|
CHAR szConnectPort[MAX_SETTINGS_STRING+1];
|
|
|
|
CHAR szNickName[MAX_SETTINGS_STRING+1];
|
|
|
|
CHAR szDebugScript[MAX_SETTINGS_STRING+1];
|
|
|
|
} GAME_SETTINGS;
|
|
|
|
|
2024-02-26 22:57:09 +08:00
|
|
|
#include "d3dhook/IDirect3DDevice9Hook.h"
|
2024-03-14 23:48:25 +08:00
|
|
|
#include "d3dhook/ID3DXFontHook.h"
|
2024-02-26 22:57:09 +08:00
|
|
|
|
2024-02-18 22:05:04 +08:00
|
|
|
#include "d3d9/include/d3d9.h"
|
|
|
|
#include "d3d9/include/d3dx9core.h"
|
2023-10-23 23:04:28 +08:00
|
|
|
#include "game/game.h"
|
|
|
|
|
2024-02-05 23:33:23 +08:00
|
|
|
#include "../raknet/RakClientInterface.h"
|
|
|
|
#include "../raknet/RakNetworkFactory.h"
|
2024-03-22 23:47:43 +08:00
|
|
|
#include "../raknet/PacketEnumerations.h"
|
2024-02-05 23:33:23 +08:00
|
|
|
#include "../raknet/SAMPRPC.h"
|
2023-11-23 23:49:41 +08:00
|
|
|
#include "../raknet/GetTime.h"
|
|
|
|
|
2024-02-15 22:41:04 +08:00
|
|
|
#include "net/localplayer.h"
|
2024-02-05 23:28:43 +08:00
|
|
|
#include "net/netrpc.h"
|
2024-02-12 20:12:15 +08:00
|
|
|
#include "net/actorpool.h"
|
2024-02-14 22:51:29 +08:00
|
|
|
#include "net/playerpool.h"
|
2024-02-06 22:08:24 +08:00
|
|
|
#include "net/vehiclepool.h"
|
2024-02-07 23:59:04 +08:00
|
|
|
#include "net/pickuppool.h"
|
2024-02-12 20:10:26 +08:00
|
|
|
#include "net/objectpool.h"
|
2024-02-18 21:21:09 +08:00
|
|
|
#include "net/gangzonepool.h"
|
2024-02-12 20:22:51 +08:00
|
|
|
#include "net/menupool.h"
|
2024-02-16 22:32:25 +08:00
|
|
|
#include "net/textdrawpool.h"
|
2024-02-12 20:16:37 +08:00
|
|
|
#include "net/labelpool.h"
|
2023-11-14 22:58:51 +08:00
|
|
|
#include "net/netgame.h"
|
2024-02-05 23:28:43 +08:00
|
|
|
#include "net/scriptrpc.h"
|
2023-11-14 22:58:51 +08:00
|
|
|
|
|
|
|
#include "config.h"
|
2024-02-14 23:23:26 +08:00
|
|
|
#include "filehooks.h"
|
2023-11-14 22:58:51 +08:00
|
|
|
#include "fontrender.h"
|
|
|
|
#include "chatwindow.h"
|
|
|
|
#include "cmdwindow.h"
|
2024-02-05 21:59:11 +08:00
|
|
|
#include "deathwindow.h"
|
2024-03-20 23:49:06 +08:00
|
|
|
#include "spawnscreen.h"
|
2024-03-27 23:27:18 +08:00
|
|
|
#include "svrnetstats.h"
|
2023-11-14 22:58:51 +08:00
|
|
|
#include "audiostream.h"
|
2023-11-08 20:29:53 +08:00
|
|
|
#include "archive/ArchiveFS.h"
|
|
|
|
|
2024-03-25 23:01:51 +08:00
|
|
|
#include "unkclass1.h"
|
2024-03-25 23:09:08 +08:00
|
|
|
#include "unkclass2.h"
|
2024-03-25 23:10:42 +08:00
|
|
|
#include "unkclass3.h"
|
2024-03-26 23:50:28 +08:00
|
|
|
#include "unkclass4.h"
|
2024-03-26 23:52:21 +08:00
|
|
|
#include "unkclass5.h"
|
2024-03-27 22:47:09 +08:00
|
|
|
#include "unkclass6.h"
|
2024-03-27 23:29:41 +08:00
|
|
|
#include "unkclass7.h"
|
2024-03-28 23:25:57 +08:00
|
|
|
#include "unkclass8.h"
|
2024-03-28 23:29:42 +08:00
|
|
|
#include "unkclass9.h"
|
2024-03-25 23:10:42 +08:00
|
|
|
|
2023-10-20 06:46:57 +08:00
|
|
|
void SetStringFromCommandLine(char *szCmdLine, char *szString);
|
|
|
|
void SetStringFromQuotedCommandLine(char *szCmdLine, char *szString);
|
|
|
|
void InitSettings();
|
2024-02-10 22:57:18 +08:00
|
|
|
|
|
|
|
void UnFuck(DWORD addr, int size);
|