diff options
| author | Creeper-xie <69880521+Creeper-xie@users.noreply.github.com> | 2023-12-04 19:26:08 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-04 12:26:08 +0100 |
| commit | a8febc8638bfc590616e4122e2f673958f318a64 (patch) | |
| tree | 9ea2f1e6f2acaf5e9e93eb387f4e1a31d96632b7 /src | |
| parent | c04dfb82bb8dd213e2fb409283a9ef412485308a (diff) | |
| download | box64-a8febc8638bfc590616e4122e2f673958f318a64.tar.gz box64-a8febc8638bfc590616e4122e2f673958f318a64.zip | |
Changes to be committed: (#1110)
modified: src/main.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c index 03d17fe4..06de88a7 100644 --- a/src/main.c +++ b/src/main.c @@ -1167,6 +1167,8 @@ void LoadEnvVars(box64context_t *context) AddPath("/usr/x86_64-linux-gnu/lib", &context->box64_ld_lib, 1); #else //TODO: Add Termux Library Path - Lily + if(FileExist("/data/data/com.termux/files/usr/lib/x86_64-linux-gnu", 0)) + AddPath("/data/data/com.termux/files/usr/lib/x86_64-linux-gnu", &context->box64_ld_lib, 1); #endif if(getenv("LD_LIBRARY_PATH")) PrependList(&context->box64_ld_lib, getenv("LD_LIBRARY_PATH"), 1); // in case some of the path are for x86 world @@ -1421,12 +1423,14 @@ static void free_contextargv() static void load_rcfiles() { - //#ifndef TERMUX + #ifndef TERMUX if(FileExist("/etc/box64.box64rc", IS_FILE)) LoadRCFile("/etc/box64.box64rc"); - //#else - //TODO: Add RC Files Support For Termux - Lily - // #endif + #else + if(FileExist("/data/data/com.termux/files/usr/etc/box64.box64rc", IS_FILE)) + LoadRCFile("/data/data/com.termux/files/usr/etc/box64.box64rc"); + #endif + else LoadRCFile(NULL); // load default rcfile char* p = getenv("HOME"); |