Skip to content

Commit

Permalink
Fixed standalone boxer clobbering its own conf files when launched th…
Browse files Browse the repository at this point in the history
…rough XCode.
  • Loading branch information
alinebee committed Nov 23, 2014
1 parent 9b030a9 commit 4c9b10d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Boxer/BXSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,8 @@ - (NSArray *) configurationURLsForEmulator: (BXEmulator *)emulator

//TWEAK: Sanitise the configurations folder of a standalone game app the first time the app is launched,
//by deleting all unused conf files.
if ([(BXBaseAppController *)[NSApp delegate] isStandaloneGameBundle])
if ([(BXBaseAppController *)[NSApp delegate] isStandaloneGameBundle] &&
[[NSBundle mainBundle] objectForInfoDictionaryKey: @"BXBundledGameboxName"] != nil)
{
NSFileManager *manager = [[NSFileManager alloc] init];
NSURL *confBaseURL = [appBundle.resourceURL URLByAppendingPathComponent: @"Configurations"];
Expand Down

0 comments on commit 4c9b10d

Please sign in to comment.