same as below

This commit is contained in:
Ultrablob 2025-02-05 14:05:36 -05:00
parent 2164eade29
commit cb0ffac056
1674 changed files with 29651 additions and 93 deletions

View file

@ -14,6 +14,9 @@ func get_scores():
$HTTPRequest.request(API_BASE + "/leaderboard")
func submit_score():
if OS.is_debug_build():
text = "Debug Build\nLeaderboard Disabled"
return
var err = config.load("user://settings.cfg")
if not (err == OK and config.has_section_key("config", "username")):
text = "Error: No Username!\nSet a username in settings to submit scores"