2018-11-15, 19:28
The system directory is where the BIOS and other important files needed by the Game cores are placed. Currently each addon requires to put the BIOSse on a directory
Another problem is that the savestates are created next to each ROM. ROM directories must not be writable by the libretro frontend (that is, Kodi).
A better implementation is to create the system, savestates and savefiles directories in a special directory in USER_DATA. For example:
Kodi core is expected to create these directories and use them instead of the current directories. The current implementation works, however it complicates a lot the setup of emulators in Kodi Leia. The proposed implementation is based on Retroarch behaviour, it's more efficient in terms of disk space and easy to set up.
Tested on Debian Linux amd64 architecture with a custom-built Kodi version cloning Github repository (version Leia near-RC1).
USER_DATA/game.libretro.core_name/resources/system
. As discussed in this and subsequent posts with @garbear, this is a design flaw because many BIOSes are shared among cores. With the current implementation this is not possible. The system directory is a property of the libretro frontend, not of the cores.Another problem is that the savestates are created next to each ROM. ROM directories must not be writable by the libretro frontend (that is, Kodi).
A better implementation is to create the system, savestates and savefiles directories in a special directory in USER_DATA. For example:
Code:
profile://user_data/games/system/ --> system directory
profile://user_data/games/savefiles/core_name/ROM_name
profile://user_data/games/savestates/core_name/ROM_name
profile://user_data/games/info/ --> core info files.
Kodi core is expected to create these directories and use them instead of the current directories. The current implementation works, however it complicates a lot the setup of emulators in Kodi Leia. The proposed implementation is based on Retroarch behaviour, it's more efficient in terms of disk space and easy to set up.
Tested on Debian Linux amd64 architecture with a custom-built Kodi version cloning Github repository (version Leia near-RC1).