From 20b6c31a16ad7c5296b4adeac2fe0d6002a55f5b Mon Sep 17 00:00:00 2001 From: staphen Date: Mon, 30 Oct 2023 17:13:51 -0400 Subject: [PATCH] error.log --- Source/diablo.cpp | 4 +--- Source/main.cpp | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/diablo.cpp b/Source/diablo.cpp index fe3a610e6ea..e1f20a6e5c0 100644 --- a/Source/diablo.cpp +++ b/Source/diablo.cpp @@ -2528,9 +2528,7 @@ void setOnInitialized(void (*callback)()) int DiabloMain(int argc, char **argv) { -#ifdef _DEBUG - SDL_LogSetAllPriority(SDL_LOG_PRIORITY_DEBUG); -#endif + SDL_LogSetAllPriority(SDL_LOG_PRIORITY_VERBOSE); DiabloParseFlags(argc, argv); InitKeymapActions(); diff --git a/Source/main.cpp b/Source/main.cpp index af8960a8350..8f182635b46 100644 --- a/Source/main.cpp +++ b/Source/main.cpp @@ -45,6 +45,8 @@ extern "C" int main(int argc, char **argv) #endif #ifdef NXDK nxMountDrive('E', "\\Device\\Harddisk0\\Partition1\\"); + freopen("E:\\UDATA\\devilutionx\\error.log", "w", stderr); + //setvbuf(stderr, NULL, _IONBF, 0); #endif #ifdef GPERF_HEAP_MAIN HeapProfilerStart("main");