mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-11-28 00:40:25 +00:00
22 lines
547 B
C
22 lines
547 B
C
|
|
||
|
#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();
|