2023-10-20 06:46:57 +08:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-11-08 20:10:20 +08:00
|
|
|
#include <stdio.h>
|
2023-10-20 06:46:57 +08:00
|
|
|
#include <windows.h>
|
2023-11-08 20:10:20 +08:00
|
|
|
#include <process.h>
|
2023-10-20 06:46:57 +08:00
|
|
|
|
|
|
|
#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;
|
|
|
|
|
2023-10-23 23:04:28 +08:00
|
|
|
#include "game/game.h"
|
|
|
|
|
2023-11-14 22:58:51 +08:00
|
|
|
#include "net/netgame.h"
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
#include "fontrender.h"
|
|
|
|
#include "chatwindow.h"
|
|
|
|
#include "cmdwindow.h"
|
|
|
|
#include "audiostream.h"
|
2023-11-08 20:29:53 +08:00
|
|
|
#include "archive/ArchiveFS.h"
|
|
|
|
|
2023-10-20 06:46:57 +08:00
|
|
|
void SetStringFromCommandLine(char *szCmdLine, char *szString);
|
|
|
|
void SetStringFromQuotedCommandLine(char *szCmdLine, char *szString);
|
|
|
|
void InitSettings();
|