move all ini settings to c_config
This commit is contained in:
parent
5ebda1fec7
commit
fa8cdbd0df
18 changed files with 523 additions and 488 deletions
76
inc/config.h
76
inc/config.h
|
@ -14,7 +14,79 @@ typedef struct CNCDDRAWCONFIG
|
|||
char game_path[MAX_PATH];
|
||||
char process_file_name[MAX_PATH];
|
||||
char process_file_ext[MAX_PATH];
|
||||
|
||||
/* Optional settings */
|
||||
|
||||
BOOL fullscreen;
|
||||
BOOL windowed;
|
||||
BOOL maintas;
|
||||
BOOL boxing;
|
||||
int maxfps;
|
||||
BOOL vsync;
|
||||
BOOL adjmouse;
|
||||
char shader[MAX_PATH];
|
||||
char renderer[256];
|
||||
BOOL devmode;
|
||||
BOOL border;
|
||||
int save_settings;
|
||||
BOOL resizable;
|
||||
int d3d9_filter;
|
||||
BOOL vhack;
|
||||
char screenshot_dir[MAX_PATH];
|
||||
BOOL toggle_borderless;
|
||||
|
||||
/* Compatibility settings */
|
||||
|
||||
BOOL noactivateapp;
|
||||
int maxgameticks;
|
||||
BOOL nonexclusive;
|
||||
BOOL singlecpu;
|
||||
int resolutions;
|
||||
int fixchilds;
|
||||
BOOL hook_peekmessage;
|
||||
int minfps;
|
||||
DWORD minfps_tick_len;
|
||||
|
||||
/* Undocumented settings */
|
||||
|
||||
BOOL releasealt;
|
||||
BOOL fixnotresponding;
|
||||
int hook;
|
||||
int guard_lines;
|
||||
int max_resolutions;
|
||||
BOOL limit_bltfast;
|
||||
BOOL lock_surfaces;
|
||||
BOOL allow_wmactivate;
|
||||
BOOL flipclear;
|
||||
BOOL fixmousehook;
|
||||
BOOL rgb555;
|
||||
BOOL no_dinput_hook;
|
||||
int refresh_rate;
|
||||
int anti_aliased_fonts_min_size;
|
||||
int custom_width;
|
||||
int custom_height;
|
||||
int min_font_size;
|
||||
|
||||
/* Hotkeys */
|
||||
|
||||
struct
|
||||
{
|
||||
int toggle_fullscreen;
|
||||
int toggle_maximize;
|
||||
int unlock_cursor1;
|
||||
int unlock_cursor2;
|
||||
int screenshot;
|
||||
} hotkeys;
|
||||
|
||||
/* Game specific settings */
|
||||
|
||||
BOOL remove_menu;
|
||||
|
||||
BOOL armadahack;
|
||||
BOOL tshack;
|
||||
BOOL infantryhack;
|
||||
BOOL stronghold_hack;
|
||||
BOOL mgs_hack;
|
||||
|
||||
} CNCDDRAWCONFIG;
|
||||
|
||||
|
@ -23,8 +95,4 @@ extern CNCDDRAWCONFIG g_config;
|
|||
void cfg_load();
|
||||
void cfg_save();
|
||||
|
||||
BOOL cfg_get_bool(LPCSTR key, BOOL default_value);
|
||||
int cfg_get_int(LPCSTR key, int default_value);
|
||||
DWORD cfg_get_string(LPCSTR key, LPCSTR default_value, LPSTR out_string, DWORD out_size);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue