--- Server/config.c 2024/10/17 09:53:38 1.1 +++ Server/config.c 2024/11/19 07:55:13 1.4 @@ -1,4 +1,4 @@ -/* $Id: config.c,v 1.1 2024/10/17 09:53:38 nishi Exp $ */ +/* $Id: config.c,v 1.4 2024/11/19 07:55:13 nishi Exp $ */ #define SOURCE @@ -10,6 +10,10 @@ #include #include +#ifdef NEED_DIRECT +#include +#endif + #if !defined(_MSC_VER) && !defined(__BORLANDC__) #include #endif @@ -129,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 @@ -386,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]); }