Username did not fetch properly on Windows, now fixed

This commit is contained in:
Paul Black 2023-03-08 22:21:35 -07:00
parent e5fedfde64
commit 47faa1c0d7

View file

@ -18,7 +18,7 @@ func check_data(): # Makes sure the save file exists
if not file: # If there's no file, let's create one with FileAccess.WRITE if not file: # If there's no file, let's create one with FileAccess.WRITE
if OS.has_environment("USERNAME"): if OS.has_environment("USERNAME"):
print("env has USERNAME var") print("env has USERNAME var")
settings_template[1] = OS.get_environment("USERNAME") settings_template["playername"] = OS.get_environment("USERNAME")
elif OS.has_environment("USER"): elif OS.has_environment("USER"):
print("env has USER var") print("env has USER var")
settings_template["playername"] = OS.get_environment("USER") settings_template["playername"] = OS.get_environment("USER")