mirror of
https://github.com/love2d/love.git
synced 2026-08-21 21:15:09 +02:00
Made write dir override the .love
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
AC_INIT([love], [20091011-ae1750d78436])
|
AC_INIT([love], [20091021-3c89eae9924e])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
AC_CONFIG_AUX_DIR([platform/unix])
|
AC_CONFIG_AUX_DIR([platform/unix])
|
||||||
AC_CONFIG_MACRO_DIR([platform/unix/m4])
|
AC_CONFIG_MACRO_DIR([platform/unix/m4])
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ namespace physfs
|
|||||||
|
|
||||||
// Try to add the save directory to the search path.
|
// Try to add the save directory to the search path.
|
||||||
// (No error on fail, it means that the path doesn't exist).
|
// (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;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -96,7 +96,7 @@ namespace physfs
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Add the directory.
|
// Add the directory.
|
||||||
if(!PHYSFS_addToSearchPath(source, 0))
|
if(!PHYSFS_addToSearchPath(source, 1))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Save the game source.
|
// Save the game source.
|
||||||
@@ -130,8 +130,8 @@ namespace physfs
|
|||||||
if(!PHYSFS_setWriteDir(save_path_full.c_str()))
|
if(!PHYSFS_setWriteDir(save_path_full.c_str()))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Add the directory. (Well not be readded if already present).
|
// Add the directory. (Will not be readded if already present).
|
||||||
if(!PHYSFS_addToSearchPath(save_path_full.c_str(), 1))
|
if(!PHYSFS_addToSearchPath(save_path_full.c_str(), 0))
|
||||||
{
|
{
|
||||||
PHYSFS_setWriteDir(0); // Clear the write directory in case of error.
|
PHYSFS_setWriteDir(0); // Clear the write directory in case of error.
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user