Add option to redirect output to file

This commit is contained in:
Filip Gawin 2021-01-03 00:38:51 +01:00
parent b3581bc0b4
commit e49ee14ed0
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -1488,6 +1488,10 @@ WinMain(HINSTANCE instance,
int int
main(int argc, char *argv[]) main(int argc, char *argv[])
{ {
#ifdef LOG_TO_FILE
freopen("re3_log.txt", "w", stdout);
freopen("re3_errors.txt", "w", stderr);
#endif
#endif #endif
RwV2d pos; RwV2d pos;
RwInt32 i; RwInt32 i;