diff options
author | Max Horn | 2010-06-06 09:34:36 +0000 |
---|---|---|
committer | Max Horn | 2010-06-06 09:34:36 +0000 |
commit | 46155b2c3678784f6333eed1d65a35eefdcb2001 (patch) | |
tree | 1f570683935a5bede0e2475493a4f48b1548d320 /backends/platform/android/org/inodes/gus/scummvm/ScummVMApplication.java | |
parent | 3efec5720de2c46355c323763dee96b719ed5aa1 (diff) | |
download | scummvm-rg350-46155b2c3678784f6333eed1d65a35eefdcb2001.tar.gz scummvm-rg350-46155b2c3678784f6333eed1d65a35eefdcb2001.tar.bz2 scummvm-rg350-46155b2c3678784f6333eed1d65a35eefdcb2001.zip |
Add Android backend from patch #2603856
svn-id: r49449
Diffstat (limited to 'backends/platform/android/org/inodes/gus/scummvm/ScummVMApplication.java')
-rw-r--r-- | backends/platform/android/org/inodes/gus/scummvm/ScummVMApplication.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/backends/platform/android/org/inodes/gus/scummvm/ScummVMApplication.java b/backends/platform/android/org/inodes/gus/scummvm/ScummVMApplication.java new file mode 100644 index 0000000000..37a9d09e1a --- /dev/null +++ b/backends/platform/android/org/inodes/gus/scummvm/ScummVMApplication.java @@ -0,0 +1,29 @@ +package org.inodes.gus.scummvm; + +import android.app.Application; + +import java.io.File; + +public class ScummVMApplication extends Application { + public final static String ACTION_PLUGIN_QUERY = "org.inodes.gus.scummvm.action.PLUGIN_QUERY"; + public final static String EXTRA_UNPACK_LIBS = "org.inodes.gus.scummvm.extra.UNPACK_LIBS"; + + private static File cache_dir; + + @Override + public void onCreate() { + super.onCreate(); + // This is still on /data :( + cache_dir = getCacheDir(); + // This is mounted noexec :( + //cache_dir = new File(Environment.getExternalStorageDirectory(), + // "/.ScummVM.tmp"); + // This is owned by download manager and requires special + // permissions to access :( + //cache_dir = Environment.getDownloadCacheDirectory(); + } + + public static File getLastCacheDir() { + return cache_dir; + } +} |