Oolite 1.91.0.7745-260117-205bce7
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()

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

Definition at line 738 of file OOOXPVerifier.m.

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

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

Referenced by OOOXPVerifier(OOPrivate)::run, and OOOXPVerifier(OOPrivate)::runStages.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OpenLogFile()

void OpenLogFile ( NSString * name)
static

Definition at line 744 of file OOOXPVerifier.m.

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

References OOLogHandlerGetLogPath().

Referenced by OOOXPVerifier(OOPrivate)::run.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SwitchLogFile()

void SwitchLogFile ( NSString * name)
static

Definition at line 725 of file OOOXPVerifier.m.

726{
727//#ifndef OOLITE_LINUX
728 name = [name stringByAppendingPathExtension:@"log"];
729 OOLog(@"verifyOXP.switchingLog", @"Switching log files -- logging to \"%@\".", name);
731//#else
732// OOLog(@"verifyOXP.switchingLog", @"Switching logging to <stdout>.");
733// OOLogOutputHandlerStartLoggingToStdout();
734//#endif
735}
void OOLogOutputHandlerChangeLogFile(NSString *newLogName)
#define OOLog(class, format,...)
Definition OOLogging.h:88

References OOLog, and OOLogOutputHandlerChangeLogFile().

Referenced by OOOXPVerifier(OOPrivate)::run.

Here is the call graph for this function:
Here is the caller graph for this function: