void SaveConf() { #ifdef VERBOSE_FUNCTION_CONF PrintLog("CDVD config: SaveConf()"); #endif /* VERBOSE_FUNCTION_CONF */ mkdir(confdirname); INISaveString(conffilename, "Settings", "Device", conf.devicename); } // END SaveConf()
void SaveConf() { #ifdef VERBOSE_FUNCTION_CONF PrintLog("CDVD config: SaveConf()\n"); #endif /* VERBOSE_FUNCTION_CONF */ mkdir(confdirname, 0755); INISaveString(conffilename, "Settings", "IsoFile", conf.isoname); INISaveString(conffilename, "Settings", "Device", conf.devicename); INISaveUInt(conffilename, "Settings", "OpenOnStart", conf.startconfigure); INISaveUInt(conffilename, "Settings", "OpenOnRestart", conf.restartconfigure); } // END SaveConf()
int INISaveUInt(char *file, char *section, char *keyword, unsigned int value) { char numvalue[INIMAXLEN + 1]; sprintf(numvalue, "%u", value); return (INISaveString(file, section, keyword, numvalue)); } // END INISaveUInt()