X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fconfig.c;h=c51e9eeb65d3b435004c299acc12bbf26d014fc4;hb=3613fc6106f74247d777da4e45b9b0fa344ec6e0;hp=d0c4a9f1322545d2e9b87591a195d8ac6c82bdd0;hpb=8fb3d3f767b8e5d094e8bcbee350f4d16ab17c5a;p=flatwaifu.git diff --git a/src/config.c b/src/config.c index d0c4a9f..c51e9ee 100644 --- a/src/config.c +++ b/src/config.c @@ -24,20 +24,19 @@ #include #include #include -#include "config.h" -#include "vga.h" -#include "error.h" +#include "map.h" #include "sound.h" -#include "files.h" +#include "music.h" #include "view.h" +#include "monster.h" #include "player.h" +#include "menu.h" +#include "files.h" +#include "render.h" +#include "error.h" +#include "input.h" #include "my.h" -#include - -extern byte _warp,fastdraw,nomon; -extern int mem_chk_sz; - enum{NONE,BYTE,WORD,DWORD,STRING,SW_ON,SW_OFF,FILES,KEY}; typedef struct{ @@ -46,13 +45,12 @@ typedef struct{ byte t,o; }cfg_t; - byte cheat=0; - byte shot_vga=0; - - char cd_path[128]=""; +char cfg_file[128]="default.cfg"; + +static char buf[256]; static cfg_t cfg[]={ {"file",NULL,NULL,FILES,0}, @@ -60,11 +58,11 @@ static cfg_t cfg[]={ {"vga","screenshot",&shot_vga,SW_ON,0}, {"sndvol","sound_volume",&snd_vol,WORD,0}, {"musvol","music_volume",&mus_vol,WORD,0}, - {"fullscr","fullscreen",&fullscreen,SW_ON,0}, - {"window",NULL,&fullscreen,SW_OFF,0}, +// {"fullscr","fullscreen",&fullscreen,SW_ON,0}, +// {"window",NULL,&fullscreen,SW_OFF,0}, {NULL,"sky",&w_horiz,SW_ON,0}, {"mon",NULL,&nomon,SW_OFF,0}, - {"gamma","gamma",&gammaa,DWORD,0}, +// {"gamma","gamma",&gammaa,DWORD,0}, {"warp",NULL,&_warp,BYTE,0}, {"width","screen_width",&SCRW,DWORD,0}, {"height","screen_height",&SCRH,DWORD,0}, @@ -93,11 +91,6 @@ static cfg_t cfg[]={ {NULL,NULL,NULL,NONE,0} }; - -char cfg_file[128]="default.cfg"; - -static char buf[256]; - void CFG_args(int argc, char *argv[]) { int j; dword n; @@ -161,19 +154,6 @@ next: } } -int get_key(char *name) -{ - int i; - for(i=1; i