mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-11-20 16:19:19 +01:00
removed check
This commit is contained in:
parent
c50461d2e0
commit
f34088d4ae
@ -914,13 +914,8 @@ if not os.path.exists(PIPE_PATH):
|
|||||||
# Create the named pipe
|
# Create the named pipe
|
||||||
os.mkfifo(PIPE_PATH)
|
os.mkfifo(PIPE_PATH)
|
||||||
|
|
||||||
# Define the directory path
|
# Only write back to the shortcuts.vdf and config.vdf files if new shortcuts were added or compattools changed
|
||||||
dir_path = f"{logged_in_home}/homebrew/plugins/NonSteamLaunchers/"
|
if new_shortcuts_added or shortcuts_updated:
|
||||||
|
|
||||||
# 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:
|
|
||||||
print(f"Saving new config and shortcuts files")
|
print(f"Saving new config and shortcuts files")
|
||||||
conf = vdf.dumps(config_data, pretty=True)
|
conf = vdf.dumps(config_data, pretty=True)
|
||||||
with open(f"{logged_in_home}/.steam/root/config/config.vdf", 'w') as file:
|
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)] = {
|
config['controller_config'][str(app_id)] = {
|
||||||
'workshop': 'workshop_id'
|
'workshop': 'workshop_id'
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add new entries for the installed launchers and games
|
# Add new entries for the installed launchers and games
|
||||||
config['controller_config']['epic games'] = {
|
config['controller_config']['epic games'] = {
|
||||||
'workshop': '2800178806'
|
'workshop': '2800178806'
|
||||||
@ -1049,3 +1043,5 @@ if not os.path.exists(dir_path):
|
|||||||
pipe.write(message + '\n') # Write to the pipe
|
pipe.write(message + '\n') # Write to the pipe
|
||||||
|
|
||||||
print("All finished!")
|
print("All finished!")
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user