GNOME Bugzilla – Bug 769678
retro: Support libretro cores distributed with a .info
Last modified: 2016-08-11 08:07:11 UTC
We should make retro-gobject ease up the work to look for a valid libretro module to use depending on its .info file.
Created attachment 333007 [details] [review] build: Add RETRO_PLUGIN_PATH This will be used in the next commit to look for libretro modules in more places.
Created attachment 333008 [details] [review] retro-gobject: Add ModuleQuery Add the ModuleQuery namespace containing the lookup_module_for_info() and lookup_module_for_basename() functions. This allows to look for libretro modules in more places and to support the ones distributed with a .info file.
Created attachment 333009 [details] [review] retro-gobject: Deprecate old module lookup functions Deprecate Retro.get_plugins_dir(), Retro.search_module() and Config.PROJECT_PLUGINS_DIR as they have been replaced in the previous commits.
Created attachment 333086 [details] [review] retro: Add RetroRunner.get_module_path() Move the code looking for the modules to its own function. This is needd to avoid cluttering prepare_core() as it will be expanded in the next commit.
Created attachment 333087 [details] [review] retro: Allow to search modules for MIME types Allow RetroRunner to look for libretro modules based on their declared supported MIME types and whether they support serialization. This will be used in the next commit to allow using a broader range of libretro cores.
Created attachment 333088 [details] [review] Build retro runners with required MIME types This allows to look for a valid libretro core from its supported MIME types if none was found from retro-plugins.
Attachment 333086 [details] pushed as 59fa017 - retro: Add RetroRunner.get_module_path() Attachment 333087 [details] pushed as 0a06e07 - retro: Allow to search modules for MIME types Attachment 333088 [details] pushed as 6d2bbe2 - Build retro runners with required MIME types
*** Bug 769677 has been marked as a duplicate of this bug. ***
This patches have wrongly been attached to this bug and released as such, here is the original issue: https://bugzilla.gnome.org/show_bug.cgi?id=769677 retro: Support libretro cores distributed with a .info We should support any libretro core distributed with a .info file containing enough information for us to work with, and not only the ones from retro-plugins. We should require the core to have valid "supported_mimetypes" and "supports_serialization" variables.