Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5788 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Nov 26, 2005, 10:35:06 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: shell-redirect for windows (so it does not write to stdout, stderr anymore (hopefully)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/orxonox.cc

    r5641 r5788  
    189189  // initialize everything
    190190  SDL_Init(SDL_INIT_TIMER);
     191  // windows must not write into stdout.txt and stderr.txt
     192#ifdef __WIN32__
     193  freopen( "CON", "w", stdout );
     194  freopen( "CON", "w", stderr );
     195#endif
     196
    191197  if( initResources () == -1) return -1;
    192198  if( initVideo() == -1) return -1;
Note: See TracChangeset for help on using the changeset viewer.