mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator
synced 2025-07-06 22:42:19 +08:00
Use the better api for linux controller support and include it in the auto builds.
This commit is contained in:
18
scripts/steamclient_loader.sh
Normal file → Executable file
18
scripts/steamclient_loader.sh
Normal file → Executable file
@ -1,10 +1,15 @@
|
||||
#!/bin/bash
|
||||
APP_PATH=./example_executable
|
||||
APP_NAME="bin/test_executable"
|
||||
APP_ID=480
|
||||
APP_PATH=$(dirname "$0")
|
||||
CONFIG_PATH=$(dirname "$0")
|
||||
|
||||
set -e
|
||||
CUR_DIR=$(pwd)
|
||||
cd "$CONFIG_PATH"
|
||||
mkdir -p ~/.steam/sdk64
|
||||
mkdir -p ~/.steam/sdk32
|
||||
rm -rf ~/.steam/sdk64/steam_settings
|
||||
rm -rf ~/.steam/sdk32/steam_settings
|
||||
#make a backup of original files
|
||||
mv ~/.steam/steam.pid ~/.steam/steam.pid.orig || true
|
||||
mv ~/.steam/sdk64/steamclient.so ~/.steam/sdk64/steamclient.so.orig || true
|
||||
@ -12,13 +17,18 @@ mv ~/.steam/sdk32/steamclient.so ~/.steam/sdk32/steamclient.so.orig || true
|
||||
#copy our files
|
||||
cp x86/steamclient.so ~/.steam/sdk32/steamclient.so
|
||||
cp x86_64/steamclient.so ~/.steam/sdk64/steamclient.so
|
||||
cp -r steam_settings ~/.steam/sdk32/
|
||||
cp -r steam_settings ~/.steam/sdk64/
|
||||
echo $BASHPID > ~/.steam/steam.pid
|
||||
SteamAppId=$APP_ID SteamGameId=$APP_ID $APP_PATH
|
||||
|
||||
cd "$APP_PATH"
|
||||
SteamAppId=$APP_ID SteamGameId=$APP_ID "$APP_NAME"
|
||||
cd "$CUR_DIR"
|
||||
#restore original
|
||||
rm -f ~/.steam/steam.pid
|
||||
rm -f ~/.steam/sdk64/steamclient.so
|
||||
rm -f ~/.steam/sdk32/steamclient.so
|
||||
rm -rf ~/.steam/sdk64/steam_settings
|
||||
rm -rf ~/.steam/sdk32/steam_settings
|
||||
mv ~/.steam/steam.pid.orig ~/.steam/steam.pid
|
||||
mv ~/.steam/sdk64/steamclient.so.orig ~/.steam/sdk64/steamclient.so || true
|
||||
mv ~/.steam/sdk32/steamclient.so.orig ~/.steam/sdk32/steamclient.so || true
|
||||
|
Reference in New Issue
Block a user