Mercurial > mm7
view Log.cpp @ 1494:3efe35df79c3
Modify PARTY_QUEST_BITS
Usage suggests uint16 instead of uint32.
Add obelisk-related PARTY_QUEST_BITS.
Add TestPartyQuestBit inline helper function.
author | yoctozepto |
---|---|
date | Sun, 01 Sep 2013 11:53:41 +0200 |
parents | 0356a84be1cf |
children | 1e5086f7d401 |
line wrap: on
line source
#include "Log.h" #include <stdio.h> #include <windows.h> HANDLE hStdOut = nullptr; void Log::Initialize() { if (AllocConsole()) hStdOut = GetStdHandle(STD_OUTPUT_HANDLE); } void Log::Warning(const wchar_t *pFormat, ...) { if (!hStdOut) return; va_list args; va_start(args, pFormat); vwprintf_s(pFormat, args); va_end(args); puts("\r\n"); } //----- (004BE386) -------------------------------------------------------- void __fastcall log_error(const char *pMessage) { const char *v1; // edi@1 FILE *f; // eax@1 FILE *v3; // esi@1 v1 = pMessage; f = fopen("errorlog.txt", "a"); v3 = f; if ( f ) { fprintf(f, "%s\n", v1); fclose(v3); fflush(v3); } }