diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2025-04-09 14:28:04 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2025-04-09 14:28:23 +0200 |
| commit | 70770db8bec892e66fa8b6834f1ea4a8f27325b6 (patch) | |
| tree | d30ac65e544734209598ee5e809068059ce590b2 /src | |
| parent | d0a5352c1a34fded2c6b77f63283711b5a93f88b (diff) | |
| download | box64-70770db8bec892e66fa8b6834f1ea4a8f27325b6.tar.gz box64-70770db8bec892e66fa8b6834f1ea4a8f27325b6.zip | |
Small change on Steam game launch handling
Diffstat (limited to 'src')
| -rw-r--r-- | src/steam.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/steam.c b/src/steam.c index 5ed2c39c..73b15a05 100644 --- a/src/steam.c +++ b/src/steam.c @@ -101,7 +101,7 @@ void pressure_vessel(int argc, const char** argv, int nextarg, const char* prog) ldcmd = usrsbinldconfig; else if(FileExist(sbinldconfig, IS_FILE)) ldcmd = sbinldconfig; - char tmp[MAX_PATH*4] = {0}; + char tmp[MAX_PATH*5] = {0}; // prepare folders, using ldconfig snprintf(tmp, sizeof(tmp), "%s -i -n %s/lib/x86_64-linux-gnu", ldcmd, sniper); if(system(tmp)<0) printf_log(LOG_INFO, "%s failed\n", tmp); @@ -111,9 +111,11 @@ void pressure_vessel(int argc, const char** argv, int nextarg, const char* prog) if(system(tmp)<0) printf_log(LOG_INFO, "%s failed\n", tmp); snprintf(tmp, sizeof(tmp), "%s -i -n %s/lib64", ldcmd, sniper); if(system(tmp)<0) printf_log(LOG_INFO, "%s failed\n", tmp); + snprintf(tmp, sizeof(tmp), "%s -i -n %s/lib32", ldcmd, sniper); + if(system(tmp)<0) printf_log(LOG_INFO, "%s failed\n", tmp); // setup LD_LIBRARY_PATH const char* ld = getenv("LD_LIBRARY_PATH"); - snprintf(tmp, sizeof(tmp), "%s/lib/x86_64-linux-gnu:%s/lib/i386-linux-gnu:%s/lib:%s/lib64:%s", sniper, sniper, sniper, sniper, ld?ld:""); + snprintf(tmp, sizeof(tmp), "%s/lib/x86_64-linux-gnu:%s/lib/i386-linux-gnu:%s/lib:%s/lib64:%s/lib32:%s", sniper, sniper, sniper, sniper, ld?ld:""); setenv("LD_LIBRARY_PATH", tmp, 1); printf_log(LOG_DEBUG, "setenv(%s, %s, 1)\n", "LD_LIBRARY_PATH", tmp); } |