libretro-backend icon indicating copy to clipboard operation
libretro-backend copied to clipboard

Support no game cores

Open FlorianUekermann opened this issue 6 years ago • 1 comments

Supporting no-game cores should be easy. I didn't send a patch, because there are some decisions to be made. I would suggest adding a support_no_game: bool to CoreInfo and either turning the game_data argument in on_load_game( &mut self, game_data: libretro_backend::GameData ) into an option, or simply setting its fields to None.

FlorianUekermann avatar Jan 28 '19 00:01 FlorianUekermann

Since GameData is already designed as a container which can be empty I think it would be more natural to just set the fields to None, and adding fn supports_no_game( mut self ) -> Self to CoreInfo sounds fine to me.

koute avatar Jan 30 '19 21:01 koute