Link Here
|
3993 |
{ |
3993 |
{ |
3994 |
struct stat statbuf; |
3994 |
struct stat statbuf; |
3995 |
|
3995 |
|
|
|
3996 |
// Set config location to home directory for multi-user support |
3997 |
// Also support separate configuration files for wolf3d and sod |
3998 |
if (!getenv("HOME")) { |
3999 |
Quit("Your $HOME directory is not defined. You must set this before playing."); |
4000 |
return; |
4001 |
} else if (strlen(getenv("HOME")) > (sizeof(configdir) - 10)) { |
4002 |
Quit("Your $HOME directory path is too long. It cannot be used for saving games."); |
4003 |
return; |
4004 |
} |
4005 |
strcpy(configdir, getenv("HOME")); |
4006 |
strcat(configdir, "/.wolf4sdl"); |
4007 |
#ifdef SPEAR |
4008 |
strcpy(configname, configdir); |
4009 |
strcat(configname, "/spear."); |
4010 |
#else |
4011 |
strcpy(configname, configdir); |
4012 |
strcat(configname, "/wolf3d."); |
4013 |
#endif |
4014 |
|
3996 |
// |
4015 |
// |
3997 |
// JAPANESE VERSION |
4016 |
// JAPANESE VERSION |
3998 |
// |
4017 |
// |