mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
F ix (#10218)
* Update preferences_savefile.dm * Revert "Runtimes go BRRR (#10184)" This reverts commita701a112d7. * Revert "Revert "Runtimes go BRRR (#10184)"" This reverts commitc3bd37b0fa. * Update preferences_savefile.dm * Update preferences_savefile.dm * Update preferences_savefile.dm * Update preferences_savefile.dm
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
// You do not need to raise this if you are adding new values that have sane defaults.
|
||||
// Only raise this value when changing the meaning/format/name/layout of an existing value
|
||||
// where you would want the updater procs below to run
|
||||
#define SAVEFILE_VERSION_MAX 27
|
||||
#define SAVEFILE_VERSION_MAX 28
|
||||
|
||||
/*
|
||||
SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Carn
|
||||
@@ -117,7 +117,12 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
||||
if(current_version < 26) //The new donator hats system obsolesces the old one entirely, we need to update.
|
||||
donor_hat = null
|
||||
donor_item = null
|
||||
|
||||
if(current_version < 27)
|
||||
map = TRUE
|
||||
flare = TRUE
|
||||
if(current_version < 28)
|
||||
if(!job_preferences)
|
||||
job_preferences = list()
|
||||
|
||||
/datum/preferences/proc/load_path(ckey,filename="preferences.sav")
|
||||
if(!ckey)
|
||||
@@ -298,6 +303,8 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
||||
WRITE_FILE(S["pda_color"], pda_color)
|
||||
WRITE_FILE(S["skillcape"], skillcape)
|
||||
WRITE_FILE(S["show_credits"], show_credits)
|
||||
WRITE_FILE(S["map"], map)
|
||||
WRITE_FILE(S["flare"], flare)
|
||||
|
||||
// yogs start - Donor features & Yogstoggle
|
||||
WRITE_FILE(S["yogtoggles"], yogtoggles)
|
||||
@@ -399,8 +406,12 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
||||
//Jobs
|
||||
S["joblessrole"] >> joblessrole
|
||||
//Load prefs
|
||||
|
||||
S["job_preferences"] >> job_preferences
|
||||
|
||||
if(!job_preferences)
|
||||
job_preferences = list()
|
||||
|
||||
//Quirks
|
||||
S["all_quirks"] >> all_quirks
|
||||
|
||||
|
||||
Reference in New Issue
Block a user