mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Can now join a server and launch installed games (Play Now does nothing special yet)
This commit is contained in:
@@ -83,6 +83,17 @@ class W3DHub
|
||||
end
|
||||
end
|
||||
|
||||
def join_server(app_id, channel, server, password = nil)
|
||||
if installed?(app_id, channel) && window.settings[:server_list_username].to_s.length.positive?
|
||||
run(
|
||||
app_id, channel,
|
||||
"+connect #{server.address}:#{server.port}",
|
||||
"+netplayername \"#{window.settings[:server_list_username]}\"",
|
||||
password ? "+password \"#{password}\"" : ""
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
def installed!(task)
|
||||
# install_dir
|
||||
# installed_version
|
||||
|
||||
Reference in New Issue
Block a user