aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android
diff options
context:
space:
mode:
authorEugene Sandulenko2019-09-25 21:24:25 +0200
committerEugene Sandulenko2019-09-27 00:22:20 +0200
commit2b72cc0b5ce716a8163ef211887df5c9742983a5 (patch)
treee5616ddc0a6edc2afdb18a5659edce6572cc26ce /backends/platform/android
parent4e5f26b44e9ef369641dd0825f17287b8cce8b08 (diff)
downloadscummvm-rg350-2b72cc0b5ce716a8163ef211887df5c9742983a5.tar.gz
scummvm-rg350-2b72cc0b5ce716a8163ef211887df5c9742983a5.tar.bz2
scummvm-rg350-2b72cc0b5ce716a8163ef211887df5c9742983a5.zip
ANDROID: Hook external storage class into ScummVMHelper
Diffstat (limited to 'backends/platform/android')
-rw-r--r--backends/platform/android/org/scummvm/scummvm/ScummVM.java2
-rw-r--r--backends/platform/android/org/scummvm/scummvm/ScummVMActivity.java7
2 files changed, 9 insertions, 0 deletions
diff --git a/backends/platform/android/org/scummvm/scummvm/ScummVM.java b/backends/platform/android/org/scummvm/scummvm/ScummVM.java
index 8dd974bbb8..ea7bf5242d 100644
--- a/backends/platform/android/org/scummvm/scummvm/ScummVM.java
+++ b/backends/platform/android/org/scummvm/scummvm/ScummVM.java
@@ -16,6 +16,7 @@ import javax.microedition.khronos.egl.EGLSurface;
import java.io.File;
import java.util.LinkedHashMap;
+import java.util.List;
public abstract class ScummVM implements SurfaceHolder.Callback, Runnable {
final protected static String LOG_TAG = "ScummVM";
@@ -62,6 +63,7 @@ public abstract class ScummVM implements SurfaceHolder.Callback, Runnable {
abstract protected void showVirtualKeyboard(boolean enable);
abstract protected void showKeyboardControl(boolean enable);
abstract protected String[] getSysArchives();
+ abstract protected List<String> getAllStorageLocations();
public ScummVM(AssetManager asset_manager, SurfaceHolder holder) {
_asset_manager = asset_manager;
diff --git a/backends/platform/android/org/scummvm/scummvm/ScummVMActivity.java b/backends/platform/android/org/scummvm/scummvm/ScummVMActivity.java
index f353ceab27..a955f02327 100644
--- a/backends/platform/android/org/scummvm/scummvm/ScummVMActivity.java
+++ b/backends/platform/android/org/scummvm/scummvm/ScummVMActivity.java
@@ -24,6 +24,7 @@ import android.widget.ImageView;
import android.widget.Toast;
import java.io.File;
+import java.util.List;
public class ScummVMActivity extends Activity {
@@ -155,12 +156,18 @@ public class ScummVMActivity extends Activity {
return new String[0];
}
+ @Override
+ protected List<String> getAllStorageLocations() {
+ return _externalStorage.getAllStorageLocations();
+ }
+
}
private MyScummVM _scummvm;
private ScummVMEvents _events;
private MouseHelper _mouseHelper;
private Thread _scummvm_thread;
+ private ExternalStorage _externalStorage;
@Override
public void onCreate(Bundle savedInstanceState) {