Skip to content

Commit

Permalink
error.log
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCWills committed Feb 16, 2024
1 parent 6e1f389 commit 20b6c31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Source/diablo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions Source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 20b6c31

Please sign in to comment.