mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
Upload easy launch script
This commit is contained in:
parent
a9b78c86ec
commit
1415d40304
1 changed files with 24 additions and 0 deletions
24
scripts/start.sh
Normal file
24
scripts/start.sh
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if not pidof steam >/dev/null
|
||||||
|
then
|
||||||
|
echo "Steam API is not available. If you want to play without port forwarding, Steam needs to be running."
|
||||||
|
read -rp "Do you want to start it now? [y/n] " choice
|
||||||
|
choice="${choice,,}"
|
||||||
|
if [ "$choice" = "y" ] || [ "$choice" = "yes" ]
|
||||||
|
then
|
||||||
|
nohup steam >/dev/null 2>&1 &
|
||||||
|
read -rp "Started Steam. Press enter when it has fully initialised..."
|
||||||
|
else
|
||||||
|
echo "Running without Steam..."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
ID=$(lutris --list-games 2>&1 | grep Noita | awk -F'|' '{ if (length($1) >= 2) print substr($1, length($1)-1, 1) }')
|
||||||
|
|
||||||
|
echo "Noita Lutris instance found with ID: $ID"
|
||||||
|
echo "Starting proxy..."
|
||||||
|
|
||||||
|
chmod +x noita_proxy.x86_64
|
||||||
|
|
||||||
|
LUTRIS_SKIP_INIT=1 ./noita_proxy.x86_64 --exe-path "/home/$USER/Games/gog/noita/drive_c/GOG Games/Noita/noita.exe" --launch-cmd "lutris lutris:rungameid/$ID"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue