mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 17:22:35 +00:00
Removed dependence on the bsdtar command, fixed Play Now button not doing anything if a server nickname wasn't set, refactor a bit so that the Server List's 'Join Server' button functionality can be reused for the Play Now button, installer now always unpacks into 'data/*' instead of 'Data/*'
This commit is contained in:
@@ -231,7 +231,24 @@ class W3DHub
|
||||
|
||||
return false unless server
|
||||
|
||||
join_server(app_id, channel, server)
|
||||
if Store.settings[:server_list_username].to_s.length.zero?
|
||||
W3DHub.prompt_for_nickname(
|
||||
accept_callback: proc do |entry|
|
||||
Store.settings[:server_list_username] = entry
|
||||
Store.settings.save_settings
|
||||
|
||||
if server.status.password
|
||||
W3DHub.prompt_for_password(
|
||||
accept_callback: proc do |password|
|
||||
join_server(app_id, channel, server)
|
||||
end
|
||||
)
|
||||
else
|
||||
join_server(app_id, channel, server)
|
||||
end
|
||||
end
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
def favorive(app_id, bool)
|
||||
|
||||
Reference in New Issue
Block a user