mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-11-20 16:19:19 +01:00
Fix for Epic Games to Avoid DLC
This commit is contained in:
parent
efd28ca143
commit
a06cbf4e35
@ -757,7 +757,7 @@ if os.path.exists(dat_file_path) and os.path.exists(item_dir):
|
|||||||
with open(dat_file_path, 'r') as file:
|
with open(dat_file_path, 'r') as file:
|
||||||
dat_data = json.load(file)
|
dat_data = json.load(file)
|
||||||
|
|
||||||
#Epic Game Scanner
|
# Epic Game Scanner
|
||||||
for item_file in os.listdir(item_dir):
|
for item_file in os.listdir(item_dir):
|
||||||
if item_file.endswith('.item'):
|
if item_file.endswith('.item'):
|
||||||
with open(os.path.join(item_dir, item_file), 'r') as file:
|
with open(os.path.join(item_dir, item_file), 'r') as file:
|
||||||
@ -770,14 +770,15 @@ if os.path.exists(dat_file_path) and os.path.exists(item_dir):
|
|||||||
start_dir = f"\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{epic_games_launcher}/pfx/drive_c/Program Files (x86)/Epic Games/Launcher/Portal/Binaries/Win32/\""
|
start_dir = f"\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{epic_games_launcher}/pfx/drive_c/Program Files (x86)/Epic Games/Launcher/Portal/Binaries/Win32/\""
|
||||||
launch_options = f"STEAM_COMPAT_DATA_PATH=\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{epic_games_launcher}\" %command% -'com.epicgames.launcher://apps/{app_name}?action=launch&silent=true'"
|
launch_options = f"STEAM_COMPAT_DATA_PATH=\"{logged_in_home}/.local/share/Steam/steamapps/compatdata/{epic_games_launcher}\" %command% -'com.epicgames.launcher://apps/{app_name}?action=launch&silent=true'"
|
||||||
|
|
||||||
# Check if the game is still installed
|
# Check if the game is still installed and if the LaunchExecutable is valid, not content-related, and is a .exe file
|
||||||
for game in dat_data['InstallationList']:
|
if item_data['LaunchExecutable'].endswith('.exe') and "Content" not in item_data['DisplayName'] and "Content" not in item_data['InstallLocation']:
|
||||||
if game['AppName'] == item_data['AppName']:
|
for game in dat_data['InstallationList']:
|
||||||
create_new_entry(exe_path, display_name, launch_options, start_dir)
|
if game['AppName'] == item_data['AppName']:
|
||||||
|
create_new_entry(exe_path, display_name, launch_options, start_dir)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print("Epic Games Launcher data not found. Skipping Epic Games Scanner.")
|
print("Epic Games Launcher data not found. Skipping Epic Games Scanner.")
|
||||||
#End of the Epic Games Scanner
|
# End of the Epic Games Scanner
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user