- if(loadINI("neonserv.ini") == FILE_SUCCESS) {
- mysql_host[0] = '\0';
- ReadString("MySQL", "host", mysql_host);
- if(!*mysql_host) {
- perror("invalid neonserv.ini: missing MySQL host");
+ if(loadConfig("neonserv.conf")) {
+ mysql_host = get_string_field("MySQL.host");
+ if(!mysql_host) {
+ perror("invalid neonserv.conf: missing MySQL.host");