reeeee rust_g
This commit is contained in:
@@ -139,14 +139,14 @@ GLOBAL_LIST_EMPTY(vore_preferences_datums)
|
||||
return 0
|
||||
|
||||
//Write it out
|
||||
#ifdef RUST_G
|
||||
call(RUST_G, "file_write")(json_to_file, path)
|
||||
#else
|
||||
//#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)
|
||||
#endif
|
||||
//#endif
|
||||
if(!fexists(path))
|
||||
testing("Saving: [path] failed file write")
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user