Oolite 1.91.0.7604-240417-a536cbe
Loading...
Searching...
No Matches
Classes | Functions
OOOXPVerifier.m File Reference
import "OOOXPVerifier.h"
import "OOOXPVerifierStageInternal.h"
import "OOLoggingExtended.h"
import "ResourceManager.h"
import "OOCollectionExtractors.h"
import "GameController.h"
import "OOCacheManager.h"
import "OODebugStandards.h"
import "OOLogOutputHandler.h"
+ 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 721 of file OOOXPVerifier.m.

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

728{
729 // Open log file in appropriate application / provide feedback.
730
731 if ([[NSUserDefaults standardUserDefaults] oo_boolForKey:@"oxp-verifier-open-log" defaultValue:YES])
732 {
733#if OOLITE_MAC_OS_X
734 [[NSWorkspace sharedWorkspace] openFile:OOLogHandlerGetLogPath()];
735#elif OOLITE_WINDOWS
736 // start wordpad (for historical reasons wordpad is called write from the command prompt)
737 system([[NSString stringWithFormat:@"write \"Logs\\%@.log\"", name] UTF8String]);
738#elif OOLITE_LINUX
739 // MKW - needed to suppress 'ignoring return value' warning for system() call
740 // int ret;
741 // CIM - and now the compiler complains about that too... casting return
742 // value to void seems to keep it quiet for now
743 // Nothing to do here, since we dump to stdout instead of to a file.
744 //OOLogOutputHandlerStopLoggingToStdout();
745 (void) system([[NSString stringWithFormat:@"cat \"%@\"", OOLogHandlerGetLogPath()] UTF8String]);
746#else
747 do {} while (0);
748#endif
749 }
750}
NSString * OOLogHandlerGetLogPath(void)

◆ SwitchLogFile()

static void SwitchLogFile ( NSString * name)
static

Definition at line 708 of file OOOXPVerifier.m.

709{
710//#ifndef OOLITE_LINUX
711 name = [name stringByAppendingPathExtension:@"log"];
712 OOLog(@"verifyOXP.switchingLog", @"Switching log files -- logging to \"%@\".", name);
714//#else
715// OOLog(@"verifyOXP.switchingLog", @"Switching logging to <stdout>.");
716// OOLogOutputHandlerStartLoggingToStdout();
717//#endif
718}
void OOLogOutputHandlerChangeLogFile(NSString *newLogName)
#define OOLog(class, format,...)
Definition OOLogging.h:88

References OOLog, and OOLogOutputHandlerChangeLogFile().

+ Here is the call graph for this function: