Made write dir override the .love

This commit is contained in:
bart@bartbes.ath.cx
2009-10-23 13:41:50 +02:00
parent 10b5530c0d
commit ff06834934
2 changed files with 28 additions and 28 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
AC_INIT([love], [20091011-ae1750d78436])
AC_INIT([love], [20091021-3c89eae9924e])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([platform/unix])
AC_CONFIG_MACRO_DIR([platform/unix/m4])
+4 -4
View File
@@ -81,7 +81,7 @@ namespace physfs
// Try to add the save directory to the search path.
// (No error on fail, it means that the path doesn't exist).
PHYSFS_addToSearchPath(save_path_full.c_str(), 1);
PHYSFS_addToSearchPath(save_path_full.c_str(), 0);
return true;
}
@@ -96,7 +96,7 @@ namespace physfs
return false;
// Add the directory.
if(!PHYSFS_addToSearchPath(source, 0))
if(!PHYSFS_addToSearchPath(source, 1))
return false;
// Save the game source.
@@ -130,8 +130,8 @@ namespace physfs
if(!PHYSFS_setWriteDir(save_path_full.c_str()))
return false;
// Add the directory. (Well not be readded if already present).
if(!PHYSFS_addToSearchPath(save_path_full.c_str(), 1))
// Add the directory. (Will not be readded if already present).
if(!PHYSFS_addToSearchPath(save_path_full.c_str(), 0))
{
PHYSFS_setWriteDir(0); // Clear the write directory in case of error.
return false;