Oolite
Loading...
Searching...
No Matches
OOOXPVerifier.m File Reference
+ Include dependency graph for OOOXPVerifier.m:

Go to the source code of this file.

Classes

category  OOOXPVerifier(OOPrivate)
 

Functions

static void SwitchLogFile (NSString *name)
 
static void NoteVerificationStage (NSString *displayName, NSString *stage)
 
static void OpenLogFile (NSString *name)
 

Function Documentation

◆ NoteVerificationStage()

static void NoteVerificationStage ( NSString *  displayName,
NSString *  stage 
)
static

Definition at line 730 of file OOOXPVerifier.m.

731{
732 [[GameController sharedController] logProgress:[NSString stringWithFormat:@"Verifying %@\n%@", displayName, stage]];
733}
GameController * sharedController()
void logProgress:(NSString *message)

References GameController::logProgress:, and GameController::sharedController.

+ Here is the call graph for this function:

◆ OpenLogFile()

static void OpenLogFile ( NSString *  name)
static

Definition at line 736 of file OOOXPVerifier.m.

737{
738 // Open log file in appropriate application / provide feedback.
739
740 if ([[NSUserDefaults standardUserDefaults] oo_boolForKey:@"oxp-verifier-open-log" defaultValue:YES])
741 {
742#if OOLITE_MAC_OS_X
743 [[NSWorkspace sharedWorkspace] openFile:OOLogHandlerGetLogPath()];
744#elif OOLITE_WINDOWS
745 // ShellExecute will automatically use the app associated with .log files
746 ShellExecute(NULL, NULL, [OOLogHandlerGetLogPath() UTF8String], NULL, NULL, SW_SHOWNORMAL);
747#elif OOLITE_LINUX
748 // MKW - needed to suppress 'ignoring return value' warning for system() call
749 // int ret;
750 // CIM - and now the compiler complains about that too... casting return
751 // value to void seems to keep it quiet for now
752 // Nothing to do here, since we dump to stdout instead of to a file.
753 //OOLogOutputHandlerStopLoggingToStdout();
754 (void) system([[NSString stringWithFormat:@"cat \"%@\"", OOLogHandlerGetLogPath()] UTF8String]);
755#else
756 do {} while (0);
757#endif
758 }
759}
NSString * OOLogHandlerGetLogPath(void)

◆ SwitchLogFile()

static void SwitchLogFile ( NSString *  name)
static

Definition at line 717 of file OOOXPVerifier.m.

718{
719//#ifndef OOLITE_LINUX
720 name = [name stringByAppendingPathExtension:@"log"];
721 OOLog(@"verifyOXP.switchingLog", @"Switching log files -- logging to \"%@\".", name);
723//#else
724// OOLog(@"verifyOXP.switchingLog", @"Switching logging to <stdout>.");
725// OOLogOutputHandlerStartLoggingToStdout();
726//#endif
727}
void OOLogOutputHandlerChangeLogFile(NSString *newLogName)
#define OOLog(class, format,...)
Definition OOLogging.h:88

References OOLog, and OOLogOutputHandlerChangeLogFile().

+ Here is the call graph for this function: