aboutsummaryrefslogtreecommitdiff
path: root/client/global.gd
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2024-06-27 12:45:45 +0200
committernokoe <nokoe@mailbox.org>2024-06-27 12:45:45 +0200
commitb0363cf5b56837b74308d4335d7f189f843ea770 (patch)
tree04c49977df4eaeee4b1a64446cad82e5889c5841 /client/global.gd
parentbeedaa3079119f970fdb1ca51395b343443a6778 (diff)
downloadhurrycurry-b0363cf5b56837b74308d4335d7f189f843ea770.tar
hurrycurry-b0363cf5b56837b74308d4335d7f189f843ea770.tar.bz2
hurrycurry-b0363cf5b56837b74308d4335d7f189f843ea770.tar.zst
add server data/path setting
Diffstat (limited to 'client/global.gd')
-rw-r--r--client/global.gd12
1 files changed, 9 insertions, 3 deletions
diff --git a/client/global.gd b/client/global.gd
index f26a066f..49b5f72e 100644
--- a/client/global.gd
+++ b/client/global.gd
@@ -28,9 +28,13 @@ var default_settings := {
"value": true,
"description": tr("Interpolate the camera rotation")
},
- "test": {
- "value": "hehe",
- "description": tr("Just a test value")
+ "server_binary": {
+ "value": "",
+ "description": tr("The path of the server binary (leave empty to search PATH)")
+ },
+ "server_data": {
+ "value": "",
+ "description": tr("The path of the server data directory (leave empty to auto-detect)")
},
}
@@ -68,6 +72,8 @@ func load_dict(path: String, default: Dictionary) -> Dictionary:
for i in default.keys():
if saved_dict.has(i):
res[i] = saved_dict[i]
+ else:
+ res[i] = default[i]
print("Loaded dict: ", res)
return res