18 #include "precompiled.h"
35 const wchar_t* ret_dup = wcsdup(text);
53 fwprintf(out, L
"(unavailable)");
57 const size_t buf_size = 1024;
62 size_t bytes_read = fread(buf, 1, buf_size, in);
66 fwprintf(out, L
"%hs", buf);
77 fwprintf(f, L
"System info:\n\n");
80 fwprintf(f, L
"\n\n====================================\n\n");
82 fwprintf(f, L
"Main log:\n\n");
85 fwprintf(f, L
"\n\n====================================\n\n");
void psBundleLogs(FILE *f)
const OsPath & psLogDir()
static void out(const wchar_t *fmt,...)
void psSetLogDir(const OsPath &newLogDir)
static void AppendAsciiFile(FILE *out, const OsPath &pathname)
FILE * sys_OpenFile(const OsPath &pathname, const char *mode)
open a file like with fopen (but taking an OsPath argument).
void psTranslateFree(const wchar_t *text)
static const wchar_t * translate_no_mem
const wchar_t * psTranslate(const wchar_t *text)