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
#define MISSION_SWITCHER // from debug menu
#endif
//#define LOG_TO_FILE
// Rendering/display
//#define EXTRA_MODEL_FLAGS // from mobile to optimize rendering

View File

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