mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-19 13:20:47 +01:00
242fa3a66b
* Ports over configuration controller * Fixes * Manual path fix * patch (#16490) * patch * . * SQL Fix * Post-rebase fix * Added missing examples --------- Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
13 lines
503 B
Plaintext
13 lines
503 B
Plaintext
/// Moves nif stuff to it's own file
|
|
/datum/preferences/proc/migration_15_nif_path(datum/json_savefile/S)
|
|
var/datum/json_savefile/new_savefile = new /datum/json_savefile(nif_savefile_path(client_ckey))
|
|
|
|
for(var/slot in 1 to CONFIG_GET(number/character_slots))
|
|
var/list/prefs = new_savefile.get_entry("character[slot]", null)
|
|
if(!islist(prefs))
|
|
continue
|
|
prefs["nif_path"] = replacetext(prefs["nif_path"], "/device", "")
|
|
new_savefile.set_entry("character[slot]", prefs)
|
|
|
|
new_savefile.save()
|