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

This commit is contained in:
fysx
2014-02-20 22:31:59 +01:00
parent 5f6fa8c2b5
commit fab725ad8b
@@ -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";