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:
@@ -8,7 +8,7 @@ class W3DHub
|
||||
wine_command: "wine",
|
||||
create_wine_prefixes: true,
|
||||
allow_diagnostic_reports: false,
|
||||
server_list_username: nil,
|
||||
server_list_username: "",
|
||||
account: {},
|
||||
applications: {},
|
||||
games: {}
|
||||
@@ -53,6 +53,10 @@ class W3DHub
|
||||
@settings.dig(*args)
|
||||
end
|
||||
|
||||
def []=(key, value)
|
||||
@settings[key] = value
|
||||
end
|
||||
|
||||
def load_settings
|
||||
@settings = JSON.parse(File.read(SETTINGS_FILE_PATH), symbolize_names: true)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user