SVN r27 (trunk)

This commit is contained in:
Christoph Oelckers 2006-04-11 16:27:41 +00:00
commit 25f90d6221
74 changed files with 1133 additions and 235 deletions

View file

@ -311,7 +311,7 @@ string GetUserFile (string file, bool nodir)
if (!nodir)
{
struct stat info;
if (stat (path, &info) == -1)
if (stat (path.GetChars(), &info) == -1)
{
if (mkdir (path.GetChars(), S_IRUSR | S_IWUSR | S_IXUSR) == -1)
{
@ -346,6 +346,7 @@ void STACK_ARGS M_SaveDefaults ()
}
GameConfig->WriteConfigFile ();
delete GameConfig;
GameConfig = NULL;
}