Skip to content

Commit

Permalink
Merge pull request #428 from ToddLa/mame-250
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshisuga authored Dec 10, 2022
2 parents 50d08a8 + 96f4f42 commit 0a3641e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
6 changes: 6 additions & 0 deletions WHATSNEW.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Version 2022.5
* Updated to [MAME 250](https://www.mamedev.org/releases/whatsnew_0250.txt).
* tvOS UX: use a Alert instead of a inline Segmented Control.
* Show upload feedback in Web Server UX.
* Added `Make First Favorite` to game context menu.

# Version 2022.4
* Updated to [MAME 248](https://www.mamedev.org/releases/whatsnew_0248.txt).
* use first media type (ie -flop1 over -flop4)
Expand Down
Binary file modified iOS-res/hash.zip
Binary file not shown.
Binary file modified iOS-res/plugins.zip
Binary file not shown.
18 changes: 13 additions & 5 deletions xcode/MAME4iOS/ChooseGameController.m
Original file line number Diff line number Diff line change
Expand Up @@ -2022,15 +2022,23 @@ - (NSArray*)menuActionsForItemAtIndexPath:(NSIndexPath *)indexPath {
}]
];

if ([self isRecent:game]) {
actions = [actions arrayByAddingObjectsFromArray:@[
if (is_fav && indexPath.row != 0 && [self->_gameSectionTitles[indexPath.section] isEqualToString:FAVORITE_GAMES_TITLE]) {
actions = [actions arrayByAddingObject:
[UIAlertAction actionWithTitle:@"Make First Favorite" symbol:@"1.circle" style:UIAlertActionStyleDefault handler:^(id action) {
[self setFavorite:game isFavorite:YES];
[self filterGameList];
}]
];
}

if ([self isRecent:game] && [self->_gameSectionTitles[indexPath.section] isEqualToString:RECENT_GAMES_TITLE]) {
actions = [actions arrayByAddingObject:
[UIAlertAction actionWithTitle:@"Remove from Recently Played" symbol:@"minus.circle" style:UIAlertActionStyleDefault handler:^(id action) {
if ([self->_gameSectionTitles[indexPath.section] isEqualToString:RECENT_GAMES_TITLE])
[self moveSelectionForDelete:indexPath];
[self moveSelectionForDelete:indexPath];
[self setRecent:game isRecent:NO];
[self filterGameList];
}]
]];
];
}

actions = [actions arrayByAddingObjectsFromArray:@[
Expand Down
4 changes: 2 additions & 2 deletions xcode/MAME4iOS/MAME4iOS.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

ORG_IDENTIFIER = com.example // CHANGE this to your Organization Identifier.
DEVELOPMENT_TEAM = ABC8675309 // CHANGE this to your Team ID. (or select in Xcode project editor)
CURRENT_PROJECT_VERSION = 2022.4
MARKETING_VERSION = 2022.4
CURRENT_PROJECT_VERSION = 2022.5
MARKETING_VERSION = 2022.5

// 2. enable or disable entitlements
// tvOS TopShelf and iCloud import/export require special app entitlements
Expand Down

0 comments on commit 0a3641e

Please sign in to comment.