Merge pull request #7517 from Poojawa/rusty_vore

Forces Vore prefs to use rust_g
This commit is contained in:
deathride58
2018-09-03 13:46:59 -04:00
committed by GitHub
@@ -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