Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
Removes special characters from game's name
Browse files Browse the repository at this point in the history
A bug in Steam fails to launch tbash scripts that contain special characters like in Rocket League®
  • Loading branch information
redromnon committed Feb 26, 2022
1 parent 8ea8c82 commit ec6251f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion func/listinstalled.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ def listinstalled():
#Pointing to the game's json file
gamejson = heroicjsonpath + "/" + i + ".json"

createlaunchfile(installed[i]["title"], i, gamejson) # gamename, appname, game's json file path
#Removing special characters from the game name (Steam issue)
gamename = installed[i]["title"].encode("ascii", "ignore")

#Preparing launch file
createlaunchfile(gamename.decode(), i, gamejson) # gamename, appname, game's json file path

#END OF THE PROGRAM
print("\n...Process finished. Launch files stored in GameFiles folder.\nHave fun gaming!")

0 comments on commit ec6251f

Please sign in to comment.