mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-05 03:34:52 +01:00
Add env variable to set app path.
This commit is contained in:
parent
106fb03bb0
commit
71e265f52b
2 changed files with 10 additions and 7 deletions
|
|
@ -8,8 +8,6 @@ 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
|
||||
|
|
@ -17,18 +15,14 @@ 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
|
||||
cd "$APP_PATH"
|
||||
SteamAppId=$APP_ID SteamGameId=$APP_ID "$APP_NAME"
|
||||
SteamAppPath="$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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue