X-Git-Url: http://deadsoftware.ru/gitweb?p=flatwaifu.git;a=blobdiff_plain;f=src%2Fconfig.c;h=0c5bc21868319394f1645d5d800437f29bcb6588;hp=9ad78cb2037bc09deb995d76d6258b07fc9f0ff2;hb=2bb81ea2565c3627c954b5c37326db89b0048472;hpb=3d2215798aaab87db7ae5265d21e359864e1f1c2 diff --git a/src/config.c b/src/config.c index 9ad78cb..0c5bc21 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 +#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 "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}, @@ -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,8 +154,7 @@ next: } } -int get_key(char *name) -{ +static int get_key (char *name) { int i; for(i=1; i