SA-MP/saco/main.h

99 lines
2.3 KiB
C
Raw Permalink Normal View History

2023-10-20 06:46:57 +08:00
#pragma once
#include <stdio.h>
2023-10-20 06:46:57 +08:00
#include <windows.h>
#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; } }
2024-10-28 00:00:41 +08:00
#define IDC_CMDEDIT 1
#define MAX_PLAYER_NAME 24
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"
#include "d3dhook/ID3DXFontHook.h"
2024-02-26 22:57:09 +08:00
#include "d3d9/include/d3d9.h"
#include "d3d9/include/d3dx9core.h"
2024-10-28 00:00:41 +08:00
#include "d3d9/common/dxstdafx.h"
2023-10-23 23:04:28 +08:00
#include "game/game.h"
#include "../raknet/RakClientInterface.h"
#include "../raknet/RakNetworkFactory.h"
#include "../raknet/BitStream.h"
2024-03-22 23:47:43 +08:00
#include "../raknet/PacketEnumerations.h"
#include "../raknet/SAMPRPC.h"
2023-11-23 23:49:41 +08:00
#include "../raknet/GetTime.h"
#include "net/localplayer.h"
#include "net/remoteplayer.h"
#include "net/netplayer.h"
#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"
#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"
#include "net/textdrawpool.h"
2024-02-12 20:16:37 +08:00
#include "net/labelpool.h"
#include "net/netgame.h"
#include "net/scriptrpc.h"
#include "config.h"
#include "filehooks.h"
#include "fontrender.h"
#include "chatwindow.h"
#include "cmdwindow.h"
#include "deathwindow.h"
#include "spawnscreen.h"
#include "playertags.h"
#include "newplayertags.h"
#include "scoreboard.h"
2024-04-21 20:49:59 +08:00
#include "label.h"
2024-04-21 21:19:10 +08:00
#include "netstats.h"
2024-03-27 23:27:18 +08:00
#include "svrnetstats.h"
#include "helpdialog.h"
#include "audiostream.h"
2023-11-08 20:29:53 +08:00
#include "archive/ArchiveFS.h"
#include "unkclass3.h"
#include "unkclass4.h"
#include "unkclass5.h"
#include "unkclass8.h"
#include "unkclass10.h"
#include "unkclass11.h"
#include "unkclass12.h"
#include "unkclass13.h"
#include "unkclass14.h"
#include "unkclass15.h"
2023-10-20 06:46:57 +08:00
void SetStringFromCommandLine(char *szCmdLine, char *szString);
void SetStringFromQuotedCommandLine(char *szCmdLine, char *szString);
void InitSettings();
void UnFuck(DWORD addr, int size);
2024-07-22 18:26:07 +08:00
#include "outputdebugstring.h"
//----------------------------------------------------
// EOF