mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-25 13:33:44 +00:00
Add option to redirect output to file
This commit is contained in:
parent
b3581bc0b4
commit
e49ee14ed0
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue