added location for files to open

This commit is contained in:
J-Doiron
2024-12-23 12:26:31 -08:00
parent cde28eff2d
commit edd31947bc
2 changed files with 2 additions and 7 deletions

View File

@@ -37,8 +37,8 @@ LOCAL_USER_SETTINGS = os.path.join(
"Saved", "Config", "WindowsNoEditor", "GameUserSettings.ini"
)
VIDEO_PATH = os.path.join(get_steamapps_common_path(), "Horizon Zero Dawn Remastered", "Movies", "Mono")
input_file = 'input.reg'
config_file = 'config_registry.txt'
input_file = os.path.join(SCRIPT_DIRECTORY, 'input.reg')
config_file = os.path.join(SCRIPT_DIRECTORY, 'config_registry.txt')
hive = winreg.HKEY_CURRENT_USER
subkey = r"SOFTWARE\Guerilla Games\Horizon Zero Dawn Remastered\Graphics"

View File

@@ -4,11 +4,6 @@ import re
import winreg
input_file = 'input.reg'
config_file = 'config_registry.txt'
hive = winreg.HKEY_CURRENT_USER
subkey = r"SOFTWARE\Guerilla Games\Horizon Zero Dawn Remastered\Graphics"
def export_registry_key(hive, subkey, input_file):
try:
with winreg.OpenKey(hive,subkey) as reg_key: