ANDROID: Actually create the savegame directory.
Not sure how this went missing from the commit.
This commit is contained in:
parent
a836eb2cff
commit
fed26146a8
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue