ANDROID: Actually create the savegame directory.

Not sure how this went missing from the commit.
This commit is contained in:
Alyssa Milburn 2011-10-27 14:16:22 +02:00
parent a836eb2cff
commit fed26146a8

View file

@ -134,6 +134,7 @@ public class ScummVMActivity extends Activity {
// world-readable and don't get deleted on uninstall. // world-readable and don't get deleted on uninstall.
String savePath = Environment.getExternalStorageDirectory() + "/ScummVM/Saves/"; String savePath = Environment.getExternalStorageDirectory() + "/ScummVM/Saves/";
File saveDir = new File(savePath); File saveDir = new File(savePath);
saveDir.mkdirs();
if (!saveDir.isDirectory()) { if (!saveDir.isDirectory()) {
// If it doesn't work, resort to the internal app path. // If it doesn't work, resort to the internal app path.
savePath = getDir("saves", MODE_WORLD_READABLE).getPath(); savePath = getDir("saves", MODE_WORLD_READABLE).getPath();