No stdout in SVN prerelease

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
edge2054
Retired Ninja
Posts: 3756
Joined: Fri May 28, 2010 4:38 pm

No stdout in SVN prerelease

#1 Post 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.

tiger_eye
Perspiring Physicist
Posts: 889
Joined: Thu Feb 17, 2011 5:20 am

Re: No stdout in SVN prerelease

#2 Post 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
 }

Post Reply