r_font_hinting 1
r_font_disable_freetype 0
r_font_size_snapping 2
+
+// database management
+set sv_db_saveasdump 0 "write server.db in dump format (loads slower, easier to read/parse)"
+set cl_db_saveasdump 0 "write client.db in dump format (loads slower, easier to read/parse)"
remove(players);
db_close(binddb);
db_close(tempdb);
- db_save(ClientProgsDB, "client.db");
+ if(cvar("cl_db_saveasdump"))
+ db_dump(ClientProgsDB, "client.db");
+ else
+ db_save(ClientProgsDB, "client.db");
db_close(ClientProgsDB);
cvar_clientsettemp_restore();
print("Saving persistent data...\n");
Ban_SaveBans();
if(!cheatcount_total)
- db_save(ServerProgsDB, "server.db");
+ {
+ if(cvar("sv_db_saveasdump"))
+ db_dump(ServerProgsDB, "server.db");
+ else
+ db_save(ServerProgsDB, "server.db");
+ }
if(cvar("developer"))
- db_save(TemporaryDB, "server-temp.db");
+ {
+ if(cvar("sv_db_saveasdump"))
+ db_dump(TemporaryDB, "server-temp.db");
+ else
+ db_save(TemporaryDB, "server-temp.db");
+ }
CheatShutdown(); // must be after cheatcount check
db_close(ServerProgsDB);
db_close(TemporaryDB);