mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-13 18:54:41 +00:00
adts: add LL_OPT_* defines that enable optimizations (some only make sense if there are tons of files, and need to be able to disable them for thesis). realized this would be perfect application of policy template classes, which will replace this.
fix crashdumps: was failing to write out to file (underlying cause: current directory no longer being set) app_hooks: add get_log_dir; used by debug and wdbg_sym minor improvements/documentation in archive+compression+file_cache+zip main: remove dead ScEd code This was SVN commit r3498.
This commit is contained in:
@@ -210,7 +210,12 @@ void debug_wprintf(const wchar_t* fmt, ...)
|
||||
|
||||
LibError debug_write_crashlog(const wchar_t* text)
|
||||
{
|
||||
FILE* f = fopen("crashlog.txt", "w");
|
||||
// note: we go through some gyrations here (strcpy+strcat) to avoid
|
||||
// dependency on file code (vfs_path_append).
|
||||
char N_path[PATH_MAX];
|
||||
strcpy_s(N_path, ARRAY_SIZE(N_path), ah_get_log_dir());
|
||||
strcat_s(N_path, ARRAY_SIZE(N_path), "crashlog.txt");
|
||||
FILE* f = fopen(N_path, "w");
|
||||
if(!f)
|
||||
{
|
||||
DISPLAY_ERROR(L"debug_write_crashlog: unable to open file");
|
||||
|
||||
Reference in New Issue
Block a user