mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 09:08:30 +01:00
Save json savefiles to disk in pretty print form (#80512)
Pretty printed json files are easier to store file history for.
This commit is contained in:
@@ -57,7 +57,7 @@ GENERAL_PROTECT_DATUM(/datum/json_savefile)
|
||||
|
||||
/datum/json_savefile/proc/save()
|
||||
if(path)
|
||||
rustg_file_write(json_encode(tree), path)
|
||||
rustg_file_write(json_encode(tree, JSON_PRETTY_PRINT), path)
|
||||
|
||||
/datum/json_savefile/serialize_list(list/options, list/semvers)
|
||||
SHOULD_CALL_PARENT(FALSE)
|
||||
|
||||
Reference in New Issue
Block a user