Ample lite - use ~full files.

This commit is contained in:
Kelvin Sherlock 2023-11-12 18:24:23 -05:00
parent a1f6db6bb4
commit 28b49a549c
3 changed files with 12 additions and 1 deletions

View File

@ -213,8 +213,11 @@ enum {
NSBundle *bundle = [NSBundle mainBundle];
NSFileManager *fm = [NSFileManager defaultManager];
#ifdef AMPLE_LITE
NSURL *url = [bundle URLForResource: @"roms~extra" withExtension: @"plist"];
#else
NSURL *url = [bundle URLForResource: @"roms" withExtension: @"plist"];
#endif
NSArray *roms = [NSArray arrayWithContentsOfURL: url];
NSURL *sd = SupportDirectory();

View File

@ -20,7 +20,11 @@
-(void)awakeFromNib {
NSBundle *bundle = [NSBundle mainBundle];
#ifdef AMPLE_LITE
NSString *path = [bundle pathForResource: @"models~extra" ofType: @"plist"];
#else
NSString *path = [bundle pathForResource: @"models" ofType: @"plist"];
#endif
_data = [NSArray arrayWithContentsOfFile: path];

View File

@ -27,7 +27,11 @@
first++;
NSBundle *bundle = [NSBundle mainBundle];
#ifdef AMPLE_LITE
NSString *path = [bundle pathForResource: @"models~extra" ofType: @"plist"];
#else
NSString *path = [bundle pathForResource: @"models" ofType: @"plist"];
#endif
_data = [NSArray arrayWithContentsOfFile: path];
}