Tweaked startup logging.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5415 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Jens Ayton 2012-10-10 16:44:54 +00:00
parent f3df081d5b
commit 76347c282b
2 changed files with 10 additions and 8 deletions

View File

@ -175,9 +175,6 @@
joystick.reject = no; // Lists HID devices that are not considered joysticks.
loading.complete = yes;
material.canonicalForm = no; // Extremely verbose logging of normalized material specifier dictionaries.
@ -404,6 +401,7 @@
startup.progress = no; // Startup progress stages.
loading.complete = yes;
station.launchShip.impossible = no; // generally cancelled launches due to station having no launch docks are uninteresting

View File

@ -89,6 +89,8 @@ static GameController *sSharedController = nil;
{
last_timeInterval = [NSDate timeIntervalSinceReferenceDate];
delta_t = 0.01; // one hundredth of a second
_splashStart = [[NSDate alloc] init];
}
return self;
@ -251,7 +253,7 @@ static GameController *sSharedController = nil;
exit(EXIT_FAILURE);
}
OOLog(@"loading.complete", @"========== Loading complete. ==========");
OOLog(@"startup.complete", @"========== Loading complete in %.2f seconds. ==========", -[_splashStart timeIntervalSinceNow]);
#if OO_USE_FULLSCREEN_CONTROLLER
[self setFullScreenMode:[[NSUserDefaults standardUserDefaults] boolForKey:@"fullscreen"]];
@ -289,8 +291,6 @@ static GameController *sSharedController = nil;
#else
[gameView updateScreen];
#endif
_splashStart = [[NSDate alloc] init];
}
@ -609,9 +609,13 @@ static void RemovePreference(NSString *key)
- (void) logProgress:(NSString *)message
{
#if OOLITE_MAC_OS_X
[splashProgressTextField setStringValue:message]; [splashProgressTextField display];
[splashProgressTextField setStringValue:message];
[splashProgressTextField display];
#endif
OOLog(@"startup.progress", @"===== [%.2f s] %@", -[_splashStart timeIntervalSinceNow], message);
if([message length] > 0)
{
OOLog(@"startup.progress", @"===== [%.2f s] %@", -[_splashStart timeIntervalSinceNow], message);
}
}