From 70770db8bec892e66fa8b6834f1ea4a8f27325b6 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Wed, 9 Apr 2025 14:28:04 +0200 Subject: Small change on Steam game launch handling --- src/steam.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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); } -- cgit 1.4.1