android: cash dir env
This commit is contained in:
parent
5a77bc0759
commit
f095fa5ae0
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ public class MainActivity extends GameActivity {
|
||||||
// Setup HOME environment variable for native code configurations.
|
// Setup HOME environment variable for native code configurations.
|
||||||
try {
|
try {
|
||||||
Os.setenv("HOME", getExternalFilesDir("").getPath(), true);
|
Os.setenv("HOME", getExternalFilesDir("").getPath(), true);
|
||||||
|
Os.setenv("XDG_CACHE_HOME", getExternalCacheDir().getPath(), true);
|
||||||
} catch (ErrnoException e) {
|
} catch (ErrnoException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue