Username did not fetch properly on Windows, now fixed
This commit is contained in:
parent
e5fedfde64
commit
47faa1c0d7
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue