Allow .love files to be opened from email attachements

This commit is contained in:
fysx
2014-02-13 13:56:23 +01:00
parent 288b25c585
commit 0db55463c9
3 changed files with 65 additions and 6 deletions
@@ -96,14 +96,16 @@ namespace
return false;
}
SDL_Log ("Copied %d of %d bytes into in-memory game archive", bytes_copied, file_size);
bool result = false;
if (PHYSFS_mountMemory (game_love_data, file_size, androidDeleteAssetGameMemory, "archive.zip", "/", 0)) {
result = true;
SDL_Log ("Mounting of in-memory game archive successful!");
} else {
SDL_Log ("Mounting of in-memory game archive failed!");
}
SDL_Log ("Mounting of in-memory game archive successful!");
return result;
}