about summary refs log tree commit diff stats
path: root/Archipelago/client.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-04-29 19:40:09 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-04-29 19:40:09 -0400
commit487c09fcaf00fbce7854c24b65bf53614024dda3 (patch)
treeee1b07926b52a70427a0756ec8146b647f73c5bb /Archipelago/client.gd
parent357e2f63581f606a032ce8886bc7137a50963aa1 (diff)
downloadlingo-archipelago-487c09fcaf00fbce7854c24b65bf53614024dda3.tar.gz
lingo-archipelago-487c09fcaf00fbce7854c24b65bf53614024dda3.tar.bz2
lingo-archipelago-487c09fcaf00fbce7854c24b65bf53614024dda3.zip
Increased max in buffer size
Horray! We don't have to hardcode games not to download.
Diffstat (limited to 'Archipelago/client.gd')
-rw-r--r--Archipelago/client.gd13
1 files changed, 2 insertions, 11 deletions
diff --git a/Archipelago/client.gd b/Archipelago/client.gd index f33c80c..a66442e 100644 --- a/Archipelago/client.gd +++ b/Archipelago/client.gd
@@ -35,7 +35,6 @@ const progressive_items = {
35 {"item": "Hallway Room (4) - Exit", "display": "Fourth Door"}, 35 {"item": "Hallway Room (4) - Exit", "display": "Fourth Door"},
36 ] 36 ]
37} 37}
38const filtered_games = ["Ocarina of Time", "Factorio", "Lufia II Ancient Cave"]
39 38
40const kTHE_END = 0 39const kTHE_END = 0
41const kTHE_MASTER = 1 40const kTHE_MASTER = 1
@@ -180,17 +179,9 @@ func _on_data():
180 179
181 var needed_games = [] 180 var needed_games = []
182 for game in message["datapackage_checksums"].keys(): 181 for game in message["datapackage_checksums"].keys():
183 # Due to a limitation with Godot 3.x, downloading a datapackage
184 # that is too large will silently fail and prevent us from
185 # finishing the connection process. So we will hardcode the
186 # names of games that are likely to cause connection problems,
187 # and not download those datapackages. Which is not ideal.
188 if ( 182 if (
189 ( 183 !_datapackages.has(game)
190 !_datapackages.has(game) 184 or _datapackages[game]["checksum"] != message["datapackage_checksums"][game]
191 or _datapackages[game]["checksum"] != message["datapackage_checksums"][game]
192 )
193 and not filtered_games.has(game)
194 ): 185 ):
195 needed_games.append(game) 186 needed_games.append(game)
196 187