Browse Source

using identity 'unnamed' if none is specified in conf.lua(fixes issue #46)

fysx 11 years ago
parent
commit
fab725ad8b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      jni/love/src/modules/filesystem/physfs/Filesystem.cpp

+ 3 - 0
jni/love/src/modules/filesystem/physfs/Filesystem.cpp

@@ -240,6 +240,9 @@ bool Filesystem::setIdentity(const char *ident, bool appendToPath)
 		save_path_full += save_path_relative;
 		save_path_full += save_path_relative;
 
 
 #ifdef LOVE_ANDROID
 #ifdef LOVE_ANDROID
+	if (save_identity == "")
+		save_identity = "unnamed";
+	
 	std::string internal_storage_path = SDL_AndroidGetInternalStoragePath();
 	std::string internal_storage_path = SDL_AndroidGetInternalStoragePath();
 
 
 	std::string save_directory = internal_storage_path + "/save";
 	std::string save_directory = internal_storage_path + "/save";