SA-MP/saco/main.h
2023-11-08 20:29:53 +08:00

28 lines
643 B
C

#pragma once
#include <stdio.h>
#include <windows.h>
#include <process.h>
#define MAX_SETTINGS_STRING 256
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;
#include "game/game.h"
#include "archive/ArchiveFS.h"
void SetStringFromCommandLine(char *szCmdLine, char *szString);
void SetStringFromQuotedCommandLine(char *szCmdLine, char *szString);
void InitSettings();