Add option to redirect output to file #918

Open
ghost wants to merge 2 commits from unknown repository into master

@ -235,6 +235,7 @@ enum Config {
#ifdef DEBUGMENU #ifdef DEBUGMENU
#define MISSION_SWITCHER // from debug menu #define MISSION_SWITCHER // from debug menu
#endif #endif
//#define LOG_TO_FILE
// Rendering/display // Rendering/display
//#define EXTRA_MODEL_FLAGS // from mobile to optimize rendering //#define EXTRA_MODEL_FLAGS // from mobile to optimize rendering

@ -1488,6 +1488,10 @@ WinMain(HINSTANCE instance,
int int
main(int argc, char *argv[]) main(int argc, char *argv[])
{ {
#endif
#ifdef LOG_TO_FILE
freopen("re3_log.txt", "w", stdout);
freopen("re3_errors.txt", "w", stderr);
#endif #endif
erorcun commented 4 years ago (Migrated from github.com)
Review

Please move this one line below, so we can use it on WIN32.

Please move this one line below, so we can use it on WIN32.
RwV2d pos; RwV2d pos;
RwInt32 i; RwInt32 i;