android: cash dir env

This commit is contained in:
ardocrat 2024-04-25 12:02:09 +03:00
parent 5a77bc0759
commit f095fa5ae0

View file

@ -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);
}