mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Compare commits
2 Commits
0a800d1a31
...
e0acdc90a7
| Author | SHA1 | Date | |
|---|---|---|---|
| e0acdc90a7 | |||
| e233fe448b |
@@ -243,15 +243,17 @@ class W3DHub
|
||||
|
||||
begin
|
||||
reg_constant.open(registry_path, reg_type) do |reg|
|
||||
if (install_path = reg["InstallPath"])
|
||||
if File.exist?(install_path) || (app_id == "ecw" && File.exist?("#{File.dirname(install_path)}/game750.exe"))
|
||||
if (install_path = reg["InstallDir"])
|
||||
exe_path = app_id == "ecw" ? "#{File.dirname(install_path)}/game750.exe" : "#{File.dirname(install_path)}/game.exe"
|
||||
|
||||
if File.exist?(exe_path)
|
||||
install_path.gsub!("\\", "/")
|
||||
installed_version = reg["InstalledVersion"] unless app_id == "ren"
|
||||
|
||||
application_data = {
|
||||
install_directory: File.dirname(install_path),
|
||||
installed_version: app_id == "ren" ? "1.0.0.0" : installed_version,
|
||||
install_path: app_id == "ecw" ? "#{File.dirname(install_path)}/game750.exe" : install_path,
|
||||
install_path: exe_path,
|
||||
wine_prefix: nil
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ class W3DHub
|
||||
Store.settings[:language] = language_code(@language_menu.value)
|
||||
|
||||
Store.settings[:app_install_dir] = @app_install_dir_input.value
|
||||
Store.settings[:package_cache_dir_input] = @package_cache_dir_input.value
|
||||
Store.settings[:package_cache_dir] = @package_cache_dir_input.value
|
||||
|
||||
Store.settings[:wine_command] = @wine_command_input.value
|
||||
Store.settings[:wine_prefix] = @wine_prefix_toggle.value
|
||||
|
||||
Reference in New Issue
Block a user