diff --git a/ios/RetroArch/RetroArch_iOS.m b/ios/RetroArch/RetroArch_iOS.m index 7e9040d922..a40f382d3a 100644 --- a/ios/RetroArch/RetroArch_iOS.m +++ b/ios/RetroArch/RetroArch_iOS.m @@ -114,6 +114,8 @@ - (void)runGame:(NSString*)path { assert(self.moduleInfo); + + [RASettingsList refreshConfigFile]; const char* const sd = [[RetroArch_iOS get].system_directory UTF8String]; const char* const cf = (ra_ios_is_file(self.moduleInfo.configPath)) ? [self.moduleInfo.configPath UTF8String] : 0; diff --git a/ios/RetroArch/browser/RAModuleList.m b/ios/RetroArch/browser/RAModuleList.m index 0430803900..deac9a8c13 100644 --- a/ios/RetroArch/browser/RAModuleList.m +++ b/ios/RetroArch/browser/RAModuleList.m @@ -60,7 +60,18 @@ else [_other addObject:module]; } - + + // Sort + [_supported sortUsingComparator:^(RAModuleInfo* left, RAModuleInfo* right) + { + return [left.displayName caseInsensitiveCompare:right.displayName]; + }]; + + [_other sortUsingComparator:^(RAModuleInfo* left, RAModuleInfo* right) + { + return [left.displayName caseInsensitiveCompare:right.displayName]; + }]; + [self setTitle:[_game lastPathComponent]]; return self; } diff --git a/ios/RetroArch/settings/RASettingsList.m b/ios/RetroArch/settings/RASettingsList.m index 81ff39a2c7..ccca49d031 100644 --- a/ios/RetroArch/settings/RASettingsList.m +++ b/ios/RetroArch/settings/RASettingsList.m @@ -105,6 +105,11 @@ static RASettingData* custom_action(NSString* action) } @implementation RASettingsList ++ (void)refreshConfigFile +{ + (void)[[RASettingsList alloc] init]; +} + - (id)init { RAConfig* config = [[RAConfig alloc] initWithPath:[RetroArch_iOS get].moduleInfo.configPath]; @@ -123,9 +128,9 @@ static RASettingData* custom_action(NSString* action) [NSArray arrayWithObjects:@"Video", boolean_setting(config, @"video_smooth", @"Smooth Video", @"true"), boolean_setting(config, @"video_crop_overscan", @"Crop Overscan", @"true"), - subpath_setting(config, @"video_bsnes_shader", @"Shader", @"", shader_path, @"shader"), - aspect_setting(config, @"Aspect Ratio"), boolean_setting(config, @"video_scale_integer", @"Integer Scaling", @"false"), + aspect_setting(config, @"Aspect Ratio"), + subpath_setting(config, @"video_bsnes_shader", @"Shader", @"", shader_path, @"shader"), nil], [NSArray arrayWithObjects:@"Audio", @@ -191,6 +196,7 @@ static RASettingData* custom_action(NSString* action) - (void)dealloc { RAConfig* config = [[RAConfig alloc] initWithPath:[RetroArch_iOS get].moduleInfo.configPath]; + [config putStringNamed:@"system_directory" value:[RetroArch_iOS get].system_directory]; [self writeSettings:nil toConfig:config]; [config writeToFile:[RetroArch_iOS get].moduleInfo.configPath]; [[RetroArch_iOS get] refreshConfig]; diff --git a/ios/RetroArch/settings/RASettingsSubList.m b/ios/RetroArch/settings/RASettingsSubList.m index 12f642398c..bd7b512091 100644 --- a/ios/RetroArch/settings/RASettingsSubList.m +++ b/ios/RetroArch/settings/RASettingsSubList.m @@ -162,6 +162,7 @@ static const char* const SETTINGID = "SETTING"; { cell = [self.tableView dequeueReusableCellWithIdentifier:@"enumeration"]; cell = cell ? cell : [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"enumeration"]; + cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; } break; diff --git a/ios/RetroArch/settings/settings.h b/ios/RetroArch/settings/settings.h index b95f70a3f4..94a9c522c8 100644 --- a/ios/RetroArch/settings/settings.h +++ b/ios/RetroArch/settings/settings.h @@ -48,4 +48,5 @@ enum SettingTypes @end @interface RASettingsList : RASettingsSubList ++ (void)refreshConfigFile; @end diff --git a/ios/modules/mednafen_ngp_libretro.info b/ios/modules/mednafen_ngp_libretro.info new file mode 100644 index 0000000000..6c6f672b99 --- /dev/null +++ b/ios/modules/mednafen_ngp_libretro.info @@ -0,0 +1,6 @@ +display_name = "Neo Geo Pocket (Color)" +supported_extensions = "ngp|ngc" +emuname = "Mednafen Neopop" +manufacturer = "SNK" +systemname = "Neo Geo Pocket (Color)" + diff --git a/ios/modules/mednafen_pce_fast_libretro.info b/ios/modules/mednafen_pce_fast_libretro.info new file mode 100644 index 0000000000..22279a08e4 --- /dev/null +++ b/ios/modules/mednafen_pce_fast_libretro.info @@ -0,0 +1,6 @@ +display_name = "PC Engine/TurboGrafx-16" +supported_extensions = "pce|sgx|cue" +emuname = "Mednafen PCE Fast" +manufacturer = "NEC" +systemname = "PC Engine/TurboGrafx-16" + diff --git a/ios/modules/mednafen_psx_libretro.info b/ios/modules/mednafen_psx_libretro.info new file mode 100644 index 0000000000..5d1b2d54e0 --- /dev/null +++ b/ios/modules/mednafen_psx_libretro.info @@ -0,0 +1,6 @@ +display_name = "PlayStation" +supported_extensions = "cue|toc" +emuname = "Mednafen PSX" +manufacturer = "Sony" +systemname = "PlayStation" + diff --git a/ios/modules/mednafen_vb_libretro.info b/ios/modules/mednafen_vb_libretro.info new file mode 100644 index 0000000000..e889dd6390 --- /dev/null +++ b/ios/modules/mednafen_vb_libretro.info @@ -0,0 +1,6 @@ +display_name = "Virtual Boy" +supported_extensions = "vb|vboy|bin" +emuname = "Mednafen VB" +manufacturer = "Nintendo" +systemname = "Virtual Boy" + diff --git a/ios/modules/mednafen_wswan_libretro.info b/ios/modules/mednafen_wswan_libretro.info new file mode 100644 index 0000000000..29b02a79ac --- /dev/null +++ b/ios/modules/mednafen_wswan_libretro.info @@ -0,0 +1,6 @@ +display_name = "WonderSwan (Color)" +supported_extensions = "ws|wsc" +emuname = "Mednafen WonderSwan" +manufacturer = "Bandai" +systemname = "WonderSwan (Color)" +