From 3ffdfb5bee632c2ed0bc2edf51eabf4c59f9958c Mon Sep 17 00:00:00 2001 From: Poojawa Date: Fri, 31 Aug 2018 02:46:55 -0500 Subject: [PATCH] Forces Vore prefs to use rust_g This probably fixes vore specific prefs breaking. --- modular_citadel/code/modules/vore/eating/vore_vr.dm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modular_citadel/code/modules/vore/eating/vore_vr.dm b/modular_citadel/code/modules/vore/eating/vore_vr.dm index 76698d5041..f9f8824b1b 100644 --- a/modular_citadel/code/modules/vore/eating/vore_vr.dm +++ b/modular_citadel/code/modules/vore/eating/vore_vr.dm @@ -151,9 +151,14 @@ V::::::V V::::::VO:::::::OOO:::::::ORR:::::R R:::::REE::::::EEEEEE return FALSE //Write it out +#ifdef RUST_G + call(RUST_G, "file_write")(json_to_file, path) +#else + // Fall back to using old format if we are not using rust-g if(fexists(path)) fdel(path) //Byond only supports APPENDING to files, not replacing. - text2file(json_to_file,path) + text2file(json_to_file, path) +#endif if(!fexists(path)) testing("Saving: [path] failed file write") return FALSE