Can now join a server and launch installed games (Play Now does nothing special yet)

This commit is contained in:
2021-11-19 15:48:13 -06:00
parent ec81959947
commit 89f7f4ab6a
9 changed files with 141 additions and 40 deletions

View File

@@ -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