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:
janwas
2006-02-11 22:49:09 +00:00
parent ccd43b4b49
commit c4e3037e60
15 changed files with 370 additions and 173 deletions
+6 -1
View File
@@ -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");