mirror of
https://github.com/Sandstorm-Station/Sandstorm-Station-13.git
synced 2026-07-19 20:23:56 +01:00
Fixes people being unable to open character setup due to not having a savefile
This commit is contained in:
@@ -357,11 +357,14 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
dat += "<HR>"
|
||||
|
||||
dat += "<center>"
|
||||
var/savefile/client_file = new(user.client.Import())
|
||||
var/file = user.client.Import()
|
||||
var/savefile/client_file
|
||||
var/savefile_name
|
||||
if(istype(client_file, /savefile))
|
||||
if(!client_file["deleted"] || savefile_needs_update(client_file) != -2)
|
||||
client_file["real_name"] >> savefile_name
|
||||
if(file)
|
||||
client_file = new(file)
|
||||
if(istype(client_file, /savefile))
|
||||
if(!client_file["deleted"] || savefile_needs_update(client_file) != -2)
|
||||
client_file["real_name"] >> savefile_name
|
||||
dat += "Local storage: [savefile_name ? savefile_name : "Empty"]"
|
||||
dat += "<br />"
|
||||
dat += "<a href='?_src_=prefs;preference=export_slot'>Export current slot</a>"
|
||||
|
||||
Reference in New Issue
Block a user