Skip to content

Commit

Permalink
SRB2: finally fix config setup
Browse files Browse the repository at this point in the history
guess StackExchange wasn't wrong, I just forgot to make sure the directory existed first. oops.
  • Loading branch information
cobalt2727 authored Jan 21, 2024
1 parent 8922764 commit 420f4de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/games_and_emulators/SRB2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ sudo mv SRB2Icon.png /usr/local/SRB2/SRB2Icon.png || error "The game installed,
#why would I bother testing if I formatted spaces correctly when I can just wildcard
sudo mv *.desktop /usr/share/applications/ || error "The game installed, but we couldn't properly set up one or more desktop files!"
#don't break the user's configs if they already have one in there
test -f ~/.srb2/config.cfg || mv config.cfg ~/.srb2/ || error "The game installed, but we couldn't properly set up one or more desktop files!"
mkdir -p ~/.srb2/
test -f ~/.srb2/config.cfg || mv config.cfg ~/.srb2/config.cfg || error "The game installed, but we couldn't properly set up one or more desktop files!"

#hardly anyone will use this but I'm putting it in anyway. it's neat.
xdg-open /usr/local/SRB2/ || echo ""
Expand Down

0 comments on commit 420f4de

Please sign in to comment.