Skip to content

Commit

Permalink
Fixed Issue when setting OS to "MAC"
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Blunck committed May 12, 2012
1 parent b20244f commit fbf1cee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion ABSaveSystem/ABSaveSystem.m
Expand Up @@ -23,7 +23,13 @@ +(id) saveSystem {
-(id) init {
self = [super init];
if (self) {
operatingSystem = ([OS isEqualToString:@"IOS"]) ? ssIOS : ssMAC;
if (OS == @"IOS") {
operatingSystem = ssIOS;
} else if (OS == @"MAC") {
operatingSystem = ssMAC;
} else {
NSLog(@"ABSaveSystem: OS not set!");
}

self.superFileName = nil;
}
Expand Down
8 changes: 7 additions & 1 deletion SaveExample/ABSaveSystem/ABSaveSystem.m
Expand Up @@ -23,7 +23,13 @@ +(id) saveSystem {
-(id) init {
self = [super init];
if (self) {
operatingSystem = ([OS isEqualToString:@"IOS"]) ? ssIOS : ssMAC;
if (OS == @"IOS") {
operatingSystem = ssIOS;
} else if (OS == @"MAC") {
operatingSystem = ssMAC;
} else {
NSLog(@"ABSaveSystem: OS not set!");
}

self.superFileName = nil;
}
Expand Down

0 comments on commit fbf1cee

Please sign in to comment.