ANDROID: Actually create the savegame directory.

Not sure how this went missing from the commit.
(cherry picked from commit fed26146a855fc79784c3df0ae3a1bf068fc2722)
This commit is contained in:
Alyssa Milburn 2011-10-27 14:16:22 +02:00
parent 7f2b2e99f8
commit dc649a13a7

View File

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