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()

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

Definition at line 660 of file OOOXPVerifier.m.

661{
662 [[GameController sharedController] logProgress:[NSString stringWithFormat:@"Verifying %@\n%@", displayName, stage]];
663}
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 665 of file OOOXPVerifier.m.

666{
667 // Open log file in appropriate application / provide feedback.
668
669 if ([[NSUserDefaults standardUserDefaults] oo_boolForKey:@"oxp-verifier-open-log" defaultValue:YES]) {
670#if OOLITE_MAC_COCOA_UI
671 [[NSWorkspace sharedWorkspace] openFile:OOLogHandlerGetLogPath()];
672#elif OOLITE_WINDOWS
673 // ShellExecute will automatically use the app associated with .log files
674 ShellExecute(NULL, NULL, [OOLogHandlerGetLogPath() UTF8String], NULL, NULL, SW_SHOWNORMAL);
675#elif OOLITE_LINUX
676 // MKW - needed to suppress 'ignoring return value' warning for system() call
677 // int ret;
678 // CIM - and now the compiler complains about that too... casting return
679 // value to void seems to keep it quiet for now
680 // Nothing to do here, since we dump to stdout instead of to a file.
681 // OOLogOutputHandlerStopLoggingToStdout();
682 (void)system([[NSString stringWithFormat:@"cat \"%@\"", OOLogHandlerGetLogPath()] UTF8String]);
683#else
684 do {
685 } while (0);
686#endif
687 }
688}
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 648 of file OOOXPVerifier.m.

649{
650 // #ifndef OOLITE_LINUX
651 name = [name stringByAppendingPathExtension:@"log"];
652 OOLog(@"verifyOXP.switchingLog", @"Switching log files -- logging to \"%@\".", name);
654 // #else
655 // OOLog(@"verifyOXP.switchingLog", @"Switching logging to <stdout>.");
656 // OOLogOutputHandlerStartLoggingToStdout();
657 // #endif
658}
void OOLogOutputHandlerChangeLogFile(NSString *newLogName)
#define OOLog(class, format,...)
Definition OOLogging.h:84

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: