mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 17:22:35 +00:00
Fixed renegade not importing from registry
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user