online multiplayer chess game (note server currently down)
Diffstat (limited to 'saveload.gd')
-rw-r--r--saveload.gd5
1 files changed, 3 insertions, 2 deletions
diff --git a/saveload.gd b/saveload.gd
index 65866e1..7d54b5f 100644
--- a/saveload.gd
+++ b/saveload.gd
@@ -10,7 +10,8 @@ const default_settings_data = {
"borderless": OS.window_borderless,
"piece_set": "california",
"board_color1": Color(0.870588, 0.890196, 0.901961),
- "board_color2": Color(0.54902, 0.635294, 0.678431)
+ "board_color2": Color(0.54902, 0.635294, 0.678431),
+ "rainbow": true
}
var files := {
@@ -48,7 +49,7 @@ func load_data(type: String) -> Dictionary:
var read_dictionary = from_base64(text)
if typeof(read_dictionary) != TYPE_DICTIONARY:
save(type) # OVERWRITE
- elif files[type]["data"].size() == read_dictionary.size():
+ elif files[type]["data"].keys() == read_dictionary.keys():
files[type]["data"] = read_dictionary
save(type) # overwrite.
file.close()