mirror of
https://github.com/anticitizn/creamlinux.git
synced 2025-12-05 21:15:40 -05:00
Fix for CK3/other games with similar directory structure
This commit is contained in:
@@ -1,10 +1,28 @@
|
||||
#!/bin/bash
|
||||
cp "$PWD/lib32Creamlinux.so" /tmp/lib32Creamlinux.so
|
||||
cp "$PWD/lib64Creamlinux.so" /tmp/lib64Creamlinux.so
|
||||
cp "$PWD/$(find . -name "libsteam_api.so" -printf "%P\n" | head -n 1)" /tmp/libsteam_api.so
|
||||
copy_file() {
|
||||
cp "$1" "$2" || { echo "Error: Failed to copy $1 to $2"; exit 1; }
|
||||
}
|
||||
|
||||
LIBSTEAM_API_DIR=$(find . -name "libsteam_api.so" -printf "%h\n" | head -n 1)
|
||||
[ -z "$LIBSTEAM_API_DIR" ] && { echo "Error: libsteam_api.so not found."; exit 1; }
|
||||
if [ ! -z "$CREAM_CONFIG_PATH" ]; then
|
||||
if [ ! -f "$CREAM_CONFIG_PATH/cream_api.ini" ]; then
|
||||
echo "Error: cream_api.ini not found in CREAM_CONFIG_PATH."; exit 1;
|
||||
fi
|
||||
else
|
||||
if [ ! -f "$PWD/cream_api.ini" ]; then
|
||||
echo "Error: cream_api.ini not found in the current working directory."; exit 1;
|
||||
fi
|
||||
fi
|
||||
if [ -z "$CREAM_CONFIG_PATH" ] && [ "$LIBSTEAM_API_DIR" != "$PWD" ]; then
|
||||
export CREAM_CONFIG_PATH="$PWD/cream_api.ini"
|
||||
fi
|
||||
|
||||
copy_file "$PWD/lib32Creamlinux.so" /tmp/lib32Creamlinux.so
|
||||
copy_file "$PWD/lib64Creamlinux.so" /tmp/lib64Creamlinux.so
|
||||
copy_file "$LIBSTEAM_API_DIR/libsteam_api.so" /tmp/libsteam_api.so
|
||||
|
||||
LD_PRELOAD="$LD_PRELOAD /tmp/lib64Creamlinux.so /tmp/lib32Creamlinux.so /tmp/libsteam_api.so" "$@"
|
||||
EXITCODE=$?
|
||||
rm /tmp/lib32Creamlinux.so
|
||||
rm /tmp/lib64Creamlinux.so
|
||||
rm /tmp/libsteam_api.so
|
||||
rm -f /tmp/lib32Creamlinux.so /tmp/lib64Creamlinux.so /tmp/libsteam_api.so
|
||||
exit $EXITCODE
|
||||
|
||||
@@ -84,6 +84,10 @@ disable_steamapps_issubscribedapp = false
|
||||
1303182 = Crusader Kings III: Royal Court
|
||||
1303184 = Crusader Kings III: Fate of Iberia
|
||||
2114760 = Crusader Kings III: Friends & Foes
|
||||
2311920 = Crusader Kings III: Tours and Tournaments
|
||||
2311930 = Crusader Kings III: Elegance of the Empire
|
||||
2313541 = Crusader Kings III: Wards and Wardens
|
||||
2313540 = Crusader Kings III: Legacy of Persia
|
||||
801650 = Surviving Mars - Stellaris Dome Set
|
||||
801710 = Surviving Mars: Deluxe Edition Upgrade Pack
|
||||
801690 = Surviving Mars: Mysteries Resupply Pack
|
||||
|
||||
Reference in New Issue
Block a user