Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

check for SAUCE_ID and set self.fileHasRecord to NO / YES afterwards

  • Loading branch information...
commit 2d244eaca218f8f91d16368ef6b4b9e8d6428447 1 parent 372a066
Stefan Vogt ByteProject authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 AnsiLove/Classes/ALSauceMachine.m
4 AnsiLove/Classes/ALSauceMachine.m
View
@@ -45,8 +45,12 @@ - (void)readRecordFromFile:(NSString *)inputFile
// No Sauce record inside the file? Stop here.
if (strcmp(record->id, SAUCE_ID) != IDENTICAL) {
+ self.fileHasRecord = NO;
return;
}
+ else {
+ self.fileHasRecord = YES;
+ }
// Let us admire the sauce record in NSLog.
// THIS IS JUST FOR TESTING - A BETTER IMPLEMENTATION IS ON THE WAY!
Please sign in to comment.
Something went wrong with that request. Please try again.