aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/org/inodes/gus/scummvm/ScummVMApplication.java
blob: f9eec72eac2905eb8cb8d9db030847e2de438e6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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;
	}
}