Uploaded SAC v1.2.3

This commit is contained in:
BigBoiCJ
2022-04-05 15:00:15 +02:00
committed by GitHub
parent 5980fdebc5
commit ea1902e6db

View File

@@ -9,7 +9,7 @@ import shutil
from time import sleep
import traceback
VERSION = "1.2.2"
VERSION = "1.2.3"
try: # Handles Python errors to write them to a log file so they can be reported and fixes more easily.
# Functions
@@ -381,6 +381,13 @@ try: # Handles Python errors to write them to a log file so they can be reported
configDir = "sac_emu/game/"
config.read(configDir + "config_override.ini")
# Optional config check
steamlessOptions = ""
try:
steamlessOptions = config["Developer"]["SteamlessOptions"] + " "
except:
pass
for root, dirs, files in os.walk(config["Locations"][platform] + gameDir):
apiFile = ""
@@ -393,7 +400,7 @@ try: # Handles Python errors to write them to a log file so they can be reported
print("\n[[[ Steamless logs ]]]")
fileLocation = root + "/" + fileName
os.rename(fileLocation, fileName) # Move the file to our location
os.system("Steamless_CLI\\Steamless.CLI.exe \"" + fileName + "\"") # Run Steamless on the game
os.system("Steamless_CLI\\Steamless.CLI.exe " + steamlessOptions + "\"" + fileName + "\"") # Run Steamless on the game
print("[[[ -------------- ]]]\n")
# Check if the game was NOT unpacked