Oolite
Loading...
Searching...
No Matches
OOOXPVerifier.m
Go to the documentation of this file.
1/*
2
3OOOXPVerifier.m
4
5
6Copyright (C) 2007-2013 Jens Ayton and contributors
7
8Permission is hereby granted, free of charge, to any person obtaining a copy
9of this software and associated documentation files (the "Software"), to deal
10in the Software without restriction, including without limitation the rights
11to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12copies of the Software, and to permit persons to whom the Software is
13furnished to do so, subject to the following conditions:
14
15The above copyright notice and this permission notice shall be included in all
16copies or substantial portions of the Software.
17
18THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24SOFTWARE.
25
26*/
27
28/* Design notes:
29 see "verifier design.txt".
30*/
31
32#import "OOOXPVerifier.h"
33
34#if OO_OXP_VERIFIER_ENABLED
35
36#if OOLITE_WINDOWS
37
38#ifdef __OBJC__
39#pragma push_macro("interface")
40#undef interface
41#define interface struct
42#endif
43
44#include <shlwapi.h>
45
46#ifdef __OBJC__
47#pragma pop_macro("interface")
48#endif
49
50#include <tchar.h>
51#endif
52
53#import "GameController.h"
54#import "OOCacheManager.h"
56#import "OODebugStandards.h"
57#import "OOLoggingExtended.h"
59#import "ResourceManager.h"
60
61static void SwitchLogFile(NSString* name);
62static void NoteVerificationStage(NSString* displayName, NSString* stage);
63static void OpenLogFile(NSString* name);
64
65@interface OOOXPVerifier (OOPrivate)
66
67- (id)initWithPath:(NSString*)path;
68- (void)run;
69
70- (void)setUpLogOverrides;
71
72- (void)registerBaseStages;
74- (void)runStages;
75
76- (BOOL)setUpDependencies:(NSSet*)dependencies
77 forStage:(OOOXPVerifierStage*)stage;
78
79- (void)setUpDependents:(NSSet*)dependents
80 forStage:(OOOXPVerifierStage*)stage;
81
82- (void)dumpDebugGraphviz;
83
84@end
85
86@implementation OOOXPVerifier
87
96{
97 NSArray* arguments = nil;
98 NSEnumerator* argEnum = nil;
99 NSString* arg = nil;
100 NSString* foundPath = nil;
101 BOOL exists, isDirectory;
102 OOOXPVerifier* verifier = nil;
103 NSAutoreleasePool* pool = nil;
104
105 pool = [[NSAutoreleasePool alloc] init];
106
107 arguments = [[NSProcessInfo processInfo] arguments];
108
109 // Scan for -verify-oxp or --verify-oxp followed by relative path
110 for (argEnum = [arguments objectEnumerator]; (arg = [argEnum nextObject]);) {
111 if ([arg isEqual:@"-verify-oxp"] || [arg isEqual:@"--verify-oxp"]) {
112 foundPath = [argEnum nextObject];
113 if (foundPath == nil) {
114 OOLog(@"verifyOXP.noPath", @"***** ERROR: %@ passed without path argument; nothing to verify.", arg);
115 [pool release];
116 return YES;
117 }
118 foundPath = [foundPath stringByExpandingTildeInPath];
119 break;
120 }
121 }
122
123 if (foundPath == nil) {
124 [pool release];
125 return NO;
126 }
127
128 // We got a path; does it point to a directory?
129 exists = [[NSFileManager defaultManager] fileExistsAtPath:foundPath isDirectory:&isDirectory];
130 if (!exists) {
131 OOLog(@"verifyOXP.badPath", @"***** ERROR: no OXP exists at path \"%@\"; nothing to verify.", foundPath);
132 } else if (!isDirectory) {
133 OOLog(@"verifyOXP.badPath", @"***** ERROR: \"%@\" is a file, not an OXP directory; nothing to verify.", foundPath);
134 } else {
135 verifier = [[OOOXPVerifier alloc] initWithPath:foundPath];
136 [pool release];
137 pool = [[NSAutoreleasePool alloc] init];
138 [verifier run];
139 [verifier release];
140 }
141 [pool release];
142
143 // Whether or not we got a valid path, -verify-oxp was passed.
144 return YES;
145}
146
147- (void)dealloc
148{
149 [_verifierPList release];
150 [_basePath release];
151 [_displayName release];
152 [_stagesByName release];
153 [_waitingStages release];
154
155 [super dealloc];
156}
157
158- (void)registerStage:(OOOXPVerifierStage*)stage
159{
160 NSString* name = nil;
161 OOOXPVerifierStage* existing = nil;
162
163 // Sanity checking
164 if (stage == nil)
165 return;
166
167 if (![stage isKindOfClass:[OOOXPVerifierStage class]]) {
168 OOLog(@"verifyOXP.registration.failed", @"Attempt to register class %@ as a verifier stage, but it is not a subclass of OOOXPVerifierStage; ignoring.", [stage class]);
169 return;
170 }
171
173 OOLog(@"verifyOXP.registration.failed", @"Attempt to register verifier stage %@ after registration closed, ignoring.", stage);
174 return;
175 }
176
177 name = [stage name];
178 if (name == nil) {
179 OOLog(@"verifyOXP.registration.failed", @"Attempt to register verifier stage %@ with nil name, ignoring.", stage);
180 return;
181 }
182
183 // We can only have one stage with a given name. Registering the same stage twice is OK, though.
184 existing = [_stagesByName objectForKey:name];
185 if (existing == stage)
186 return;
187 if (existing != nil) {
188 OOLog(@"verifyOXP.registration.failed", @"Attempt to register verifier stage %@ with same name as stage %@, ignoring.", stage, existing);
189 return;
190 }
191
192 // Checks passed, store state.
193 [stage setVerifier:self];
194 [_stagesByName setObject:stage forKey:name];
195 [_waitingStages addObject:stage];
196}
197
198- (NSString*)oxpPath
199{
200 return [[_basePath retain] autorelease];
201}
202
203- (NSString*)oxpDisplayName
204{
205 return [[_displayName retain] autorelease];
206}
207
208- (id)stageWithName:(NSString*)name
209{
210 if (name == nil)
211 return nil;
212
213 return [_stagesByName objectForKey:name];
214}
215
216- (id)configurationValueForKey:(NSString*)key
217{
218 return [_verifierPList objectForKey:key];
219}
220
221- (NSArray*)configurationArrayForKey:(NSString*)key
222{
223 return [_verifierPList oo_arrayForKey:key];
224}
225
226- (NSDictionary*)configurationDictionaryForKey:(NSString*)key
227{
228 return [_verifierPList oo_dictionaryForKey:key];
229}
230
231- (NSString*)configurationStringForKey:(NSString*)key
232{
233 return [_verifierPList oo_stringForKey:key];
234}
235
236- (NSSet*)configurationSetForKey:(NSString*)key
237{
238 NSArray* array = [_verifierPList oo_arrayForKey:key];
239 return array != nil ? [NSSet setWithArray:array] : nil;
240}
241
242@end
243
244@implementation OOOXPVerifier (OOPrivate)
245
246- (id)initWithPath:(NSString*)path
247{
248 self = [super init];
249
251
252 NSString* verifierPListPath = [[[ResourceManager builtInPath] stringByAppendingPathComponent:@"Config"] stringByAppendingPathComponent:@"verifyOXP.plist"];
253 _verifierPList = [[NSDictionary dictionaryWithContentsOfFile:verifierPListPath] retain];
254
255 _basePath = [path copy];
256 _displayName = [[NSFileManager defaultManager] displayNameAtPath:_basePath];
257 if (_displayName == nil)
258 _displayName = [_basePath lastPathComponent];
259 [_displayName retain];
260
261 _stagesByName = [[NSMutableDictionary alloc] init];
262 _waitingStages = [[NSMutableSet alloc] init];
263
264 if (_verifierPList == nil || _basePath == nil) {
265 OOLog(@"verifyOXP.setup.failed", @"%@", @"***** ERROR: failed to set up OXP verifier.");
266 [self release];
267 return nil;
268 }
269
270 _openForRegistration = YES;
271
272 return self;
273}
274
275- (void)run
276{
277 NoteVerificationStage(_displayName, @"");
278
279 [self setUpLogOverrides];
280
281 /* We need to be able to look up internal files, but not other OXP files.
282 To do this without clobbering the disk cache, we disable cache writes.
283 */
286 /* FIXME: the OXP verifier should load files from OXPs which have
287 * been explicitly listed as required_oxps in the
288 * manifest. Reading the manifest from the OXP being verified and
289 * setting 'id:<its identifier>' below will do this. */
290 [ResourceManager setUseAddOns:SCENARIO_OXP_DEFINITION_NONE];
291
292 SwitchLogFile(_displayName);
293 OOLog(@"verifyOXP.start", @"Running OXP verifier for %@", _basePath); //_displayName);
294
295 [self registerBaseStages];
297 [self runStages];
298
299 NoteVerificationStage(_displayName, @"");
300 OOLog(@"verifyOXP.done", @"%@", @"OXP verification complete.");
301
302 OpenLogFile(_displayName);
303}
304
306{
307 NSDictionary* overrides = nil;
308 NSString* messageClass = nil;
309 id verbose = nil;
310
311 OOLogSetShowMessageClassTemporary([_verifierPList oo_boolForKey:@"logShowMessageClassOverride" defaultValue:NO]);
312
313 overrides = [_verifierPList oo_dictionaryForKey:@"logControlOverride"];
314 foreachkey(messageClass, overrides)
315 {
316 OOLogSetDisplayMessagesInClass(messageClass, [overrides oo_boolForKey:messageClass defaultValue:NO]);
317 }
318
319 /* Since actually editing logControlOverride is a pain, we also allow
320 overriding verifyOXP.verbose through user defaults. This is at least
321 as much a pain under GNUstep, but very convenient under OS X.
322 */
323 verbose = [[NSUserDefaults standardUserDefaults] objectForKey:@"oxp-verifier-verbose-logging"];
324 if (verbose != nil)
325 OOLogSetDisplayMessagesInClass(@"verifyOXP.verbose", OOBooleanFromObject(verbose, NO));
326}
327
329{
330 NSAutoreleasePool* pool = nil;
331 NSSet* stages = nil;
332 NSSet* excludeStages = nil;
333 NSString* stageName = nil;
334 Class stageClass = Nil;
335 OOOXPVerifierStage* stage = nil;
336
337 pool = [[NSAutoreleasePool alloc] init];
338
339 // Load stages specified as array of class names in verifyOXP.plist
340 stages = [self configurationSetForKey:@"stages"];
341 excludeStages = [self configurationSetForKey:@"excludeStages"];
342 if ([excludeStages count] != 0) {
343 stages = [[stages mutableCopy] autorelease];
344 [(NSMutableSet*)stages minusSet:excludeStages];
345 }
346 foreach (stageName, stages) {
347 if ([stageName isKindOfClass:[NSString class]]) {
348 stageClass = NSClassFromString(stageName);
349 if (stageClass == Nil) {
350 OOLog(@"verifyOXP.registration.failed", @"Attempt to register unknown class %@ as a verifier stage, ignoring.", stageName);
351 continue;
352 }
353 stage = [[stageClass alloc] init];
354 [self registerStage:stage];
355 [stage release];
356 }
357 }
358
359 [pool release];
360}
361
363{
364 NSAutoreleasePool* pool = nil;
365 NSArray* stageKeys = nil;
366 NSString* stageKey = nil;
367 OOOXPVerifierStage* stage = nil;
368 NSString* name = nil;
369 NSMutableDictionary *dependenciesByStage = nil,
370 *dependentsByStage = nil;
371 NSSet *dependencies = nil,
372 *dependents = nil;
373 NSValue* key = nil;
374
375 pool = [[NSAutoreleasePool alloc] init];
376
377 /* Iterate over all stages, getting dependency and dependent sets.
378 This is done in advance so that -dependencies and -dependents may
379 register stages.
380 */
381 dependenciesByStage = [NSMutableDictionary dictionary];
382 dependentsByStage = [NSMutableDictionary dictionary];
383
384 for (;;) {
385 /* Loop while there are stages whose dependency lists haven't been
386 checked. This is an indeterminate loop since new ones can be
387 added.
388 */
389 stage = [_waitingStages anyObject];
390 if (stage == nil)
391 break;
392 [_waitingStages removeObject:stage];
393
394 key = [NSValue valueWithNonretainedObject:stage];
395
396 dependencies = [stage dependencies];
397 if (dependencies != nil) {
398 [dependenciesByStage setObject:dependencies
399 forKey:key];
400 }
401
402 dependents = [stage dependents];
403 if (dependents != nil) {
404 [dependentsByStage setObject:dependents
405 forKey:key];
406 }
407 }
408 [_waitingStages release];
409 _waitingStages = nil;
410 _openForRegistration = NO;
411
412 // Iterate over all stages, resolving dependencies.
413 stageKeys = [_stagesByName allKeys]; // Get the keys up front because we may need to remove entries from dictionary.
414
415 foreach (stageKey, stageKeys) {
416 stage = [_stagesByName objectForKey:stageKey];
417 if (stage == nil)
418 continue;
419
420 // Sanity check
421 name = [stage name];
422 if (![stageKey isEqualToString:name]) {
423 OOLog(@"verifyOXP.buildDependencyGraph.badName", @"***** Stage name appears to have changed from \"%@\" to \"%@\" for verifier stage %@, removing.", stageKey, name, stage);
424 [_stagesByName removeObjectForKey:stageKey];
425 continue;
426 }
427
428 // Get dependency set
429 key = [NSValue valueWithNonretainedObject:stage];
430 dependencies = [dependenciesByStage objectForKey:key];
431
432 if (dependencies != nil && ![self setUpDependencies:dependencies forStage:stage]) {
433 [_stagesByName removeObjectForKey:stageKey];
434 }
435 }
436
437 /* Iterate over all stages again, resolving reverse dependencies.
438 This is done in a separate pass because reverse dependencies are "weak"
439 while forward dependencies are "strong".
440 */
441 stageKeys = [_stagesByName allKeys];
442
443 foreach (stageKey, stageKeys) {
444 stage = [_stagesByName objectForKey:stageKey];
445 if (stage == nil)
446 continue;
447
448 // Get dependent set
449 key = [NSValue valueWithNonretainedObject:stage];
450 dependents = [dependentsByStage objectForKey:key];
451
452 if (dependents != nil) {
453 [self setUpDependents:dependents forStage:stage];
454 }
455 }
456
457 _waitingStages = [[NSMutableSet alloc] initWithArray:[_stagesByName allValues]];
458 [_waitingStages makeObjectsPerformSelector:@selector(dependencyRegistrationComplete)];
459
460 if ([[NSUserDefaults standardUserDefaults] boolForKey:@"oxp-verifier-dump-debug-graphviz"]) {
461 [self dumpDebugGraphviz];
462 }
463
464 [pool release];
465}
466
468{
469 NSAutoreleasePool* pool = nil;
470 OOOXPVerifierStage *candidateStage = nil,
471 *stageToRun = nil;
472 NSString* stageName = nil;
473
474 // Loop while there are still stages to run.
475 for (;;) {
476 pool = [[NSAutoreleasePool alloc] init];
477
478 // Look through queue for a stage that's ready
479 stageToRun = nil;
480 foreach (candidateStage, _waitingStages) {
481 if ([candidateStage canRun]) {
482 stageToRun = candidateStage;
483 break;
484 }
485 }
486 if (stageToRun == nil) {
487 // No more runnable stages
488 [pool release];
489 break;
490 }
491
492 stageName = nil;
494 @try {
495 stageName = [stageToRun name];
496 if ([stageToRun shouldRun]) {
497 NoteVerificationStage(_displayName, stageName);
498 OOLog(@"verifyOXP.runStage", @"%@", stageName);
499 OOLogIndent();
500 [stageToRun performRun];
501 } else {
502 OOLog(@"verifyOXP.verbose.skipStage", @"- Skipping stage: %@ (nothing to do).", stageName);
503 [stageToRun noteSkipped];
504 }
505 }
506 @catch (NSException* exception) {
507 if (stageName == nil)
508 stageName = [[stageToRun class] description];
509 OOLog(@"verifyOXP.exception", @"***** Exception occurred when running OXP verifier stage \"%@\": %@: %@", stageName, [exception name], [exception reason]);
510 }
512
513 [_waitingStages removeObject:stageToRun];
514 [pool release];
515 }
516
517 pool = [[NSAutoreleasePool alloc] init];
518
519 if ([_waitingStages count] != 0) {
520 OOLog(@"verifyOXP.incomplete", @"%@", @"Some verifier stages could not be run:");
521 OOLogIndent();
522 foreach (candidateStage, _waitingStages) {
523 OOLog(@"verifyOXP.incomplete.item", @"%@", candidateStage);
524 }
525 OOLogOutdent();
526 }
527 [_waitingStages release];
528 _waitingStages = nil;
529
530 [pool release];
531}
532
533- (BOOL)setUpDependencies:(NSSet*)dependencies
534 forStage:(OOOXPVerifierStage*)stage
535{
536 NSString* depName = nil;
537 OOOXPVerifierStage* depStage = nil;
538
539 // Iterate over dependencies, connecting them up.
540 foreach (depName, dependencies) {
541 depStage = [_stagesByName objectForKey:depName];
542 if (depStage == nil) {
543 OOLog(@"verifyOXP.buildDependencyGraph.unresolved", @"Verifier stage %@ has unresolved dependency \"%@\", skipping.", stage, depName);
544 return NO;
545 }
546
547 if ([depStage isDependentOf:stage]) {
548 OOLog(@"verifyOXP.buildDependencyGraph.circularReference", @"Verifier stages %@ and %@ have a dependency loop, skipping.", stage, depStage);
549 [_stagesByName removeObjectForKey:depName];
550 return NO;
551 }
552
553 [stage registerDependency:depStage];
554 }
555
556 return YES;
557}
558
559- (void)setUpDependents:(NSSet*)dependents
560 forStage:(OOOXPVerifierStage*)stage
561{
562 NSString* depName = nil;
563 OOOXPVerifierStage* depStage = nil;
564
565 // Iterate over dependents, connecting them up.
566 foreach (depName, dependents) {
567 depStage = [_stagesByName objectForKey:depName];
568 if (depStage == nil) {
569 OOLog(@"verifyOXP.buildDependencyGraph.unresolved", @"Verifier stage %@ has unresolved dependent \"%@\".", stage, depName);
570 continue; // Unresolved/conflicting dependents are non-fatal
571 }
572
573 if ([stage isDependentOf:depStage]) {
574 OOLog(@"verifyOXP.buildDependencyGraph.circularReference", @"Verifier stage %@ lists %@ as both dependent and dependency (possibly indirectly); will execute %@ after %@.", stage, depStage, stage, depStage);
575 continue;
576 }
577
578 [depStage registerDependency:stage];
579 }
580}
581
583{
584 NSMutableString* graphViz = nil;
585 NSDictionary* graphVizTemplate = nil;
586 NSString* template = nil,
587 *startTemplate = nil,
588 *endTemplate = nil;
589 OOOXPVerifierStage* stage = nil;
590 NSSet* deps = nil;
591 OOOXPVerifierStage* dep = nil;
592
593 graphVizTemplate = [self configurationDictionaryForKey:@"debugGraphvizTempate"];
594 graphViz = [NSMutableString stringWithFormat:[graphVizTemplate oo_stringForKey:@"preamble"], [NSDate date]];
595
596 /* Pass 1: enumerate over graph setting node attributes for each stage.
597 We use pointers as node names for simplicity of generation.
598 */
599 template = [graphVizTemplate oo_stringForKey:@"node"];
600 foreach (stage, [_stagesByName allValues]) {
601 [graphViz appendFormat:template, stage, [stage class], [stage name]];
602 }
603
604 [graphViz appendString:[graphVizTemplate oo_stringForKey:@"forwardPreamble"]];
605
606 /* Pass 2: enumerate over graph setting forward arcs for each dependency.
607 */
608 template = [graphVizTemplate oo_stringForKey:@"forwardArc"];
609 startTemplate = [graphVizTemplate oo_stringForKey:@"startArc"];
610 foreach (stage, [_stagesByName allValues]) {
612 if ([deps count] != 0) {
613 foreach (dep, deps) {
614 [graphViz appendFormat:template, dep, stage];
615 }
616 } else {
617 [graphViz appendFormat:startTemplate, stage];
618 }
619 }
620
621 [graphViz appendString:[graphVizTemplate oo_stringForKey:@"backwardPreamble"]];
622
623 /* Pass 3: enumerate over graph setting backward arcs for each dependent.
624 */
625 template = [graphVizTemplate oo_stringForKey:@"backwardArc"];
626 endTemplate = [graphVizTemplate oo_stringForKey:@"endArc"];
627 foreach (stage, [_stagesByName allValues]) {
628 deps = [stage resolvedDependents];
629 if ([deps count] != 0) {
630 foreach (dep, deps) {
631 [graphViz appendFormat:template, dep, stage];
632 }
633 } else {
634 [graphViz appendFormat:endTemplate, stage];
635 }
636 }
637
638 [graphViz appendString:[graphVizTemplate oo_stringForKey:@"postamble"]];
639
640 // Write file
641 [ResourceManager writeDiagnosticString:graphViz toFileNamed:@"OXPVerifierStageDependencies.dot"];
642}
643
644@end
645
646#import "OOLogOutputHandler.h"
647
648static void SwitchLogFile(NSString* name)
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}
659
660static void NoteVerificationStage(NSString* displayName, NSString* stage)
661{
662 [[GameController sharedController] logProgress:[NSString stringWithFormat:@"Verifying %@\n%@", displayName, stage]];
663}
664
665static void OpenLogFile(NSString* name)
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}
689
690#endif // OO_OXP_VERIFIER_ENABLED
BOOL OOBooleanFromObject(id object, BOOL defaultValue)
void OOSetStandardsForOXPVerifierMode(void)
#define foreachkey(VAR, DICT)
NSString * OOLogHandlerGetLogPath(void)
void OOLogOutputHandlerChangeLogFile(NSString *newLogName)
void OOLogPushIndent(void)
Definition OOLogging.m:301
void OOLogPopIndent(void)
Definition OOLogging.m:323
void OOLogOutdent(void)
Definition OOLogging.m:354
#define OOLog(class, format,...)
Definition OOLogging.h:84
void OOLogIndent(void)
Definition OOLogging.m:345
void OOLogSetDisplayMessagesInClass(NSString *inClass, BOOL inFlag)
Definition OOLogging.m:172
void OOLogSetShowMessageClassTemporary(BOOL flag)
Definition OOLogging.m:529
static void SwitchLogFile(NSString *name)
static void NoteVerificationStage(NSString *displayName, NSString *stage)
static void OpenLogFile(NSString *name)
unsigned count
return nil
BOOL runVerificationIfRequested()
GameController * sharedController()
void logProgress:(NSString *message)
void setAllowCacheWrites:(BOOL flag)
OOCacheManager * sharedCache()
void setVerifier:(OOOXPVerifier *verifier)
void registerBaseStages()
void setUpDependents:forStage:(NSSet *dependents,[forStage] OOOXPVerifierStage *stage)
BOOL _openForRegistration
NSSet * configurationSetForKey:(NSString *key)
void buildDependencyGraph()
void registerStage:(OOOXPVerifierStage *stage)
NSDictionary * configurationDictionaryForKey:(NSString *key)
NSString * oxpPath()
NSString * oxpDisplayName()
NSString * builtInPath()
BOOL writeDiagnosticString:toFileNamed:(NSString *string,[toFileNamed] NSString *name)
void setUseAddOns:(NSString *useAddOns)