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.
|
||||
try {
|
||||
Os.setenv("HOME", getExternalFilesDir("").getPath(), true);
|
||||
Os.setenv("XDG_CACHE_HOME", getExternalCacheDir().getPath(), true);
|
||||
} catch (ErrnoException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue