From f095fa5ae0a2c0eeefeff805a2d3667c1c78706d Mon Sep 17 00:00:00 2001 From: ardocrat Date: Thu, 25 Apr 2024 12:02:09 +0300 Subject: [PATCH] android: cash dir env --- android/app/src/main/java/mw/gri/android/MainActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/android/app/src/main/java/mw/gri/android/MainActivity.java b/android/app/src/main/java/mw/gri/android/MainActivity.java index a595211..d280d70 100644 --- a/android/app/src/main/java/mw/gri/android/MainActivity.java +++ b/android/app/src/main/java/mw/gri/android/MainActivity.java @@ -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); }