diff --git a/src/core/config.h b/src/core/config.h index 9f4ccd1f..fcfe980f 100644 --- a/src/core/config.h +++ b/src/core/config.h @@ -235,6 +235,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 93bfde5a..dcd2b23f 100644 --- a/src/skel/glfw/glfw.cpp +++ b/src/skel/glfw/glfw.cpp @@ -1488,6 +1488,10 @@ WinMain(HINSTANCE instance, int main(int argc, char *argv[]) { +#ifdef LOG_TO_FILE + freopen("re3_log.txt", "w", stdout); + freopen("re3_errors.txt", "w", stderr); +#endif #endif RwV2d pos; RwInt32 i;