#include #include #include #include "ini_parser.h" #include "arc_file.h" #include "debug.h" #define MAX_CONF_SIZE 512 static char mod; static char rbfname[9]; static char corename[9]; static char conf[MAX_CONF_SIZE]; static int conf_ptr; void arc_set_conf(char *); // arc ini sections const ini_section_t arc_ini_sections[] = { {1, "ARC"} }; // arc ini vars const ini_var_t arc_ini_vars[] = { {"MOD", (void*)(&mod), UINT8, 0, 127, 1}, {"RBF", (void*)rbfname, STRING, 1, 8, 1}, {"NAME", (void*)corename, STRING, 1, 8, 1}, {"CONF", (void*)arc_set_conf, CUSTOM_HANDLER, 0, 0, 1}, }; extern unsigned long iCurrentDirectory; // cluster number of current directory, 0 for root void arc_set_conf(char *c) { if ((conf_ptr+strlen(c))