Cocoa Port:

- Add support for .dss Action Replay save files.
This commit is contained in:
rogerman 2014-01-31 02:08:33 +00:00
parent 7fa5f7763e
commit 491a978f31
2 changed files with 7 additions and 2 deletions

View File

@ -179,7 +179,8 @@
#define FILE_EXT_CHEAT "dct"
#define FILE_EXT_ROM_SAVE_NOGBA "sav*"
#define FILE_EXT_ROM_SAVE_RAW "sav"
#define FILE_EXT_ACTION_REPLAY_SAVE "duc"
#define FILE_EXT_ACTION_REPLAY_SAVE "dss"
#define FILE_EXT_ACTION_REPLAY_MAX_SAVE "duc"
#define FILE_EXT_ROM_DS "nds"
#define FILE_EXT_ROM_GBA "ds.gba"
#define FILE_EXT_HW_IMAGE_FILE "bin"

View File

@ -691,7 +691,11 @@
[panel setResolvesAliases:YES];
[panel setAllowsMultipleSelection:NO];
[panel setTitle:NSSTRING_TITLE_IMPORT_ROM_SAVE_PANEL];
NSArray *fileTypes = [NSArray arrayWithObjects:@FILE_EXT_ROM_SAVE_RAW, @FILE_EXT_ACTION_REPLAY_SAVE, nil];
NSArray *fileTypes = [NSArray arrayWithObjects:
@FILE_EXT_ROM_SAVE_RAW,
@FILE_EXT_ACTION_REPLAY_SAVE,
@FILE_EXT_ACTION_REPLAY_MAX_SAVE,
nil];
// The NSOpenPanel method -(NSInt)runModalForDirectory:file:types:
// is deprecated in Mac OS X v10.6.