extern boolean startgame;
extern char str[80];
extern char configname[13];
extern char configdir[64];
extern char configname[78];
//
// Command line parameter variables
boolean loadedgame;
int mouseadjustment;
char configname[13]="config.";
char configdir[64];
char configname[78];
fs_unlink(configname);
#endif
// Ensure configdir exists and create if necessary
struct stat st;
if (stat(configdir, &st) != 0) {
mkdir(configdir, 0755);
}
const int file = open(configname, O_CREAT | O_WRONLY | O_BINARY, 0644);
if (file != -1)
{
struct stat statbuf;
// Set config location to home directory for multi-user support
// Also support separate configuration files for wolf3d and sod
strcpy(configdir, getenv("HOME"));
strcat(configdir, "/.wolf4sdl");
#ifdef SPEAR
strcpy(configname, configdir);
strcat(configname, "/spear.");
#else
strcat(configname, "/wolf3d.");
// JAPANESE VERSION