Page 1 of 1

No stdout in SVN prerelease

Posted: Tue Aug 30, 2011 12:26 am
by edge2054
Not sure if this is a bug or not but in the prerelease and my last few compiles I haven't been getting an stdout.


The prerelease just does..

Code: Select all

[CPU] Detected 8 CPUs
NO SELFEXE: bootstrapping from CWD
WARNING: No bootstrap code found, defaulting to working directory for engine code!
Creating particles thread 0
Creating particles thread 1
Creating particles thread 2
Creating particles thread 3
Creating particles thread 4
Creating particles thread 5
Creating particles thread 6
And that's it, regardless of how long the game runs.

I first noticed a change around change set 4272.

Re: No stdout in SVN prerelease

Posted: Tue Aug 30, 2011 5:15 am
by tiger_eye
Mayhaps svn revision 4222 is the culprit:

Code: Select all

Index: src/main.c
===================================================================
--- src/main.c	(revision 4221)
+++ src/main.c	(revision 4222)
@@ -891,7 +891,7 @@
 	core_def->define(core_def, "te4core", -1, NULL, NULL, NULL, NULL, 0, NULL);
 
 #ifdef SELFEXE_WINDOWS
-	freopen ("te4_log.txt", "w", stdout);
+//	freopen ("te4_log.txt", "w", stdout);
 #endif
 
 	// Parse arguments
@@ -1097,6 +1097,6 @@
 	SDL_Quit();
 
 #ifdef SELFEXE_WINDOWS
-	fclose(stdout);
+//	fclose(stdout);
 #endif
 }