From fab725ad8b662a05327cac6ae3dad63fafb3e8a9 Mon Sep 17 00:00:00 2001 From: fysx Date: Thu, 20 Feb 2014 22:31:59 +0100 Subject: [PATCH] using identity 'unnamed' if none is specified in conf.lua(fixes issue #46) --- jni/love/src/modules/filesystem/physfs/Filesystem.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jni/love/src/modules/filesystem/physfs/Filesystem.cpp b/jni/love/src/modules/filesystem/physfs/Filesystem.cpp index 42a6f76c..720492e9 100644 --- a/jni/love/src/modules/filesystem/physfs/Filesystem.cpp +++ b/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; #ifdef LOVE_ANDROID + if (save_identity == "") + save_identity = "unnamed"; + std::string internal_storage_path = SDL_AndroidGetInternalStoragePath(); std::string save_directory = internal_storage_path + "/save";