From 58daeffb14f47d566bb3d78fda10482c795161c7 Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Sat, 2 Mar 2024 12:13:34 -0600 Subject: [PATCH] Fixed renegade not importing from registry --- lib/application_manager.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/application_manager.rb b/lib/application_manager.rb index 9ca9ed4..7ca93e5 100644 --- a/lib/application_manager.rb +++ b/lib/application_manager.rb @@ -319,7 +319,8 @@ class W3DHub begin reg_constant.open(registry_path, reg_type) do |reg| - if (install_path = reg["InstallDir"]) + if (install_path = reg["InstallPath"]) + install_path = File.dirname(install_path) install_path.gsub!("\\", "/") exe_path = app_id == "ecw" ? "#{install_path}/game500.exe" : "#{install_path}/game.exe"