# HG changeset patch # User antonc27 # Date 1446510155 -3600 # Node ID bb6c553162c532106ae7ed507c39e7c1a74f4019 # Parent 6e1aa1144a2b84db7988813cf9d5dd11aae8b119 - Stub for disabling game styles on mobile diff -r 6e1aa1144a2b -r bb6c553162c5 project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m --- a/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m Sat Oct 31 04:03:17 2015 +0100 +++ b/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m Tue Nov 03 01:22:35 2015 +0100 @@ -20,6 +20,7 @@ #import "SchemeWeaponConfigViewController.h" #import +#define DISABLED_GAME_STYLES @[@""] #define LABEL_TAG 57423 #define TABLE_TAG 45657 @@ -73,7 +74,7 @@ -(NSArray *)listOfScripts { if (listOfScripts == nil) self.listOfScripts = [[[NSFileManager defaultManager] contentsOfDirectoryAtPath:SCRIPTS_DIRECTORY() error:NULL] - filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"SELF ENDSWITH '.lua'"]]; + filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"SELF ENDSWITH '.lua' AND NOT (SELF IN %@)", DISABLED_GAME_STYLES]]; return listOfScripts; }