Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed Issue when setting OS to "MAC"

  • Loading branch information...
commit fbf1ceef15755b492b4484d0ceecf6173ae0ebd6 1 parent b20244f
Alexander Blunck authored
View
8 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;
}
View
8 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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.