--- Server/config.c 2024/11/03 05:19:57 1.2 +++ Server/config.c 2024/11/19 07:55:13 1.4 @@ -1,4 +1,4 @@ -/* $Id: config.c,v 1.2 2024/11/03 05:19:57 nishi Exp $ */ +/* $Id: config.c,v 1.4 2024/11/19 07:55:13 nishi Exp $ */ #define SOURCE @@ -133,6 +133,8 @@ void tw_config_init(void) { strcpy(config.hostname, "ps2"); #elif defined(__NETWARE__) strcpy(config.hostname, "netware"); +#elif defined(__amiga__) + strcpy(config.hostname, "amiga"); #else gethostname(config.hostname, 1024); #endif @@ -390,7 +392,9 @@ int tw_config_read(const char* path) { cm_log("Config", "Missing path at line %d", ln); stop = 1; } else { +#ifndef WINCE chdir(r[1]); +#endif free(config.server_root); config.server_root = cm_strdup(r[1]); }