Permalink
Browse files

Fixed Issue when setting OS to "MAC"

  • Loading branch information...
1 parent b20244f commit fbf1ceef15755b492b4484d0ceecf6173ae0ebd6 Alexander Blunck committed May 12, 2012
Showing with 14 additions and 2 deletions.
  1. +7 −1 ABSaveSystem/ABSaveSystem.m
  2. +7 −1 SaveExample/ABSaveSystem/ABSaveSystem.m
@@ -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;
}
@@ -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;
}

0 comments on commit fbf1cee

Please sign in to comment.