Forces Vore prefs to use rust_g

This probably fixes vore specific prefs breaking.
This commit is contained in:
Poojawa
2018-08-31 02:46:55 -05:00
parent 42c39d8908
commit 3ffdfb5bee

View File

@@ -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