Skip to content

Commit

Permalink
please don't infinitely force me to select a file
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeWaka committed May 24, 2024
1 parent e1905fb commit d051135
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/datums/preferences/preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1057,12 +1057,13 @@ var/list/removed_jobs = list(
usr << ftp(F, fname)
SPAWN(15 SECONDS)
var/tries = 0
while(fexists(fname) && tries++ < 10)
fdel(fname)
while((fdel(fname) == 0) && tries++ < 10)
sleep(30 SECONDS)

proc/profile_import()
var/F = input(usr) as file
var/F = input(usr) as file|null
if(!F)
return
var/savefile/message = new()
message.ImportText("/", file2text(F))
var/hash
Expand Down

0 comments on commit d051135

Please sign in to comment.