Skip to content

Commit

Permalink
Kludge to not detect release number-less Suspended as Zork I. Fixes #24
Browse files Browse the repository at this point in the history
  • Loading branch information
angstsmurf committed Feb 6, 2021
1 parent fdffe94 commit 1551b1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/LibController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1896,6 +1896,9 @@ - (Game *)importGame:(NSString*)path inContext:(NSManagedObjectContext *)context
if (s) *s = 0;
ifid = @(buf);

if ([ifid isEqualToString:@"ZCODE-5-------"] && [[path signatureFromFile] isEqualToString:@"0304000545ff60e931b802ea1e6026860000c4cacbd2c1cb022acde526d400000000000000000000000000000000000000000000000000000000000000000000"])
ifid = @"ZCODE-5-830222";

if (([extension isEqualToString:@"dat"] &&
!(([@(format) isEqualToString:@"zcode"] && [self checkZcode:path]) ||
[@(format) isEqualToString:@"level9"])) ||
Expand Down

0 comments on commit 1551b1b

Please sign in to comment.