SA-MP/saco/main.h

22 lines
547 B
C
Raw Normal View History

2023-10-19 22:46:57 +00:00
#pragma once
#include <windows.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;
void SetStringFromCommandLine(char *szCmdLine, char *szString);
void SetStringFromQuotedCommandLine(char *szCmdLine, char *szString);
void InitSettings();