removed check

This commit is contained in:
Roy 2024-02-11 21:44:26 -08:00 committed by GitHub
parent c50461d2e0
commit f34088d4ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -914,13 +914,8 @@ if not os.path.exists(PIPE_PATH):
# Create the named pipe
os.mkfifo(PIPE_PATH)
# Define the directory path
dir_path = f"{logged_in_home}/homebrew/plugins/NonSteamLaunchers/"
# Check if the directory exists
if not os.path.exists(dir_path):
# Only write back to the shortcuts.vdf and config.vdf files if new shortcuts were added or compattools changed
if new_shortcuts_added or shortcuts_updated:
# Only write back to the shortcuts.vdf and config.vdf files if new shortcuts were added or compattools changed
if new_shortcuts_added or shortcuts_updated:
print(f"Saving new config and shortcuts files")
conf = vdf.dumps(config_data, pretty=True)
with open(f"{logged_in_home}/.steam/root/config/config.vdf", 'w') as file:
@ -937,7 +932,6 @@ if not os.path.exists(dir_path):
config['controller_config'][str(app_id)] = {
'workshop': 'workshop_id'
}
# Add new entries for the installed launchers and games
config['controller_config']['epic games'] = {
'workshop': '2800178806'
@ -1049,3 +1043,5 @@ if not os.path.exists(dir_path):
pipe.write(message + '\n') # Write to the pipe
print("All finished!")