2023-10-19 22:46:57 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-11-08 12:10:20 +00:00
|
|
|
#include <stdio.h>
|
2023-10-19 22:46:57 +00:00
|
|
|
#include <windows.h>
|
2023-11-08 12:10:20 +00:00
|
|
|
#include <process.h>
|
2023-10-19 22:46:57 +00:00
|
|
|
|
|
|
|
#define MAX_SETTINGS_STRING 256
|
|
|
|
|
2023-11-15 10:46:57 +00:00
|
|
|
#define GTASA_VERSION_UNKNOWN 0
|
|
|
|
#define GTASA_VERSION_USA10 1
|
|
|
|
#define GTASA_VERSION_EU10 2
|
|
|
|
|
2023-10-19 22:46:57 +00: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;
|
|
|
|
|
2023-10-23 15:04:28 +00:00
|
|
|
#include "game/game.h"
|
|
|
|
|
2024-02-05 15:33:23 +00:00
|
|
|
#include "../raknet/RakClientInterface.h"
|
|
|
|
#include "../raknet/RakNetworkFactory.h"
|
|
|
|
#include "../raknet/SAMPRPC.h"
|
2023-11-23 15:49:41 +00:00
|
|
|
#include "../raknet/GetTime.h"
|
|
|
|
|
2024-02-05 15:28:43 +00:00
|
|
|
#include "net/netrpc.h"
|
2024-02-12 12:12:15 +00:00
|
|
|
#include "net/actorpool.h"
|
2024-02-14 14:51:29 +00:00
|
|
|
#include "net/playerpool.h"
|
2024-02-06 14:08:24 +00:00
|
|
|
#include "net/vehiclepool.h"
|
2024-02-07 15:59:04 +00:00
|
|
|
#include "net/pickuppool.h"
|
2024-02-12 12:10:26 +00:00
|
|
|
#include "net/objectpool.h"
|
2024-02-12 12:22:51 +00:00
|
|
|
#include "net/menupool.h"
|
2024-02-12 12:16:37 +00:00
|
|
|
#include "net/labelpool.h"
|
2023-11-14 14:58:51 +00:00
|
|
|
#include "net/netgame.h"
|
2024-02-05 15:28:43 +00:00
|
|
|
#include "net/scriptrpc.h"
|
2023-11-14 14:58:51 +00:00
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
#include "fontrender.h"
|
|
|
|
#include "chatwindow.h"
|
|
|
|
#include "cmdwindow.h"
|
2024-02-05 13:59:11 +00:00
|
|
|
#include "deathwindow.h"
|
2023-11-14 14:58:51 +00:00
|
|
|
#include "audiostream.h"
|
2023-11-08 12:29:53 +00:00
|
|
|
#include "archive/ArchiveFS.h"
|
|
|
|
|
2023-10-19 22:46:57 +00:00
|
|
|
void SetStringFromCommandLine(char *szCmdLine, char *szString);
|
|
|
|
void SetStringFromQuotedCommandLine(char *szCmdLine, char *szString);
|
|
|
|
void InitSettings();
|
2024-02-10 14:57:18 +00:00
|
|
|
|
|
|
|
void UnFuck(DWORD addr, int size);
|