download system

This commit is contained in:
Face
2025-09-07 13:37:47 +03:00
parent 57674eb2b5
commit b4639e80bc
28 changed files with 1315 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ static func load_web_font(font_info: Dictionary) -> void:
http_request.timeout = 30.0
http_request.request_completed.connect(func(_result: int, response_code: int, _headers: PackedStringArray, body: PackedByteArray):
if response_code == 200:
if response_code >= 200 and response_code < 300:
if body.size() > 0:
var font = FontFile.new()