diff --git a/src/core/config.h b/src/core/config.h index 9f1981be..d3d56277 100644 --- a/src/core/config.h +++ b/src/core/config.h @@ -289,6 +289,7 @@ enum Config { #ifdef DEBUGMENU #define MISSION_SWITCHER // from debug menu #endif +//#define LOG_TO_FILE // Rendering/display //#define EXTRA_MODEL_FLAGS // from mobile to optimize rendering diff --git a/src/skel/glfw/glfw.cpp b/src/skel/glfw/glfw.cpp index 92a5a93f..eeed6bab 100644 --- a/src/skel/glfw/glfw.cpp +++ b/src/skel/glfw/glfw.cpp @@ -1860,6 +1860,10 @@ WinMain(HINSTANCE instance, int main(int argc, char *argv[]) { +#endif +#ifdef LOG_TO_FILE + freopen("re3_log.txt", "w", stdout); + freopen("re3_errors.txt", "w", stderr); #endif RwV2d pos; RwInt32 i;