mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Fixed token refresh happening to often at startup, replace missing game icon image with question mark, add support for more wwconfig.exe naming funkiness...
This commit is contained in:
@@ -52,8 +52,15 @@ class W3DHub
|
||||
# open wwconfig.exe or config.exe for ecw
|
||||
|
||||
if (app_data = installed?(app_id, channel))
|
||||
config_exe = app_id == "ecw" ? "config.exe" : "wwconfig.exe"
|
||||
exe = "#{app_data[:install_directory]}/#{config_exe}"
|
||||
exe = if File.exist?("#{app_data[:install_directory]}/wwconfig.exe")
|
||||
"#{app_data[:install_directory]}/wwconfig.exe"
|
||||
|
||||
elsif File.exist?("#{app_data[:install_directory]}/WWConfig.exe")
|
||||
"#{app_data[:install_directory]}/WWConfig.exe"
|
||||
|
||||
elsif File.exist?("#{app_data[:install_directory]}/config.exe")
|
||||
"#{app_data[:install_directory]}/config.exe"
|
||||
end
|
||||
|
||||
if File.exist?(exe)
|
||||
pid = Process.spawn("#{wine_command(app_id, channel)}\"#{exe}\"")
|
||||
|
||||
Reference in New Issue
Block a user