Warning: The tvOS port of RetroArch comes with the following important notice:
tvOS does not provide apps with a persistent storage area; instead, it allows for up to 500kb meant for configuration data. The disk space shown through the web UI is a cache space. If the OS needs to reclaim disk space, it will delete files from that cache space without warning. This includes state and saves! When this happens, you will immediately see that the appearance of RetroArch is wrong, as the assets will need to be re-downloaded.
I came up with an idea to streamline the process by embedding ROMs into the build itself and implementing a small hack to copy the files from the App Bundle to the cache folder if they are not already there. You can find the code in the following gist. This solution works as expected and saves time from having to upload ROMs every time you reboot the Apple TV.
I'm interested in getting feedback from more experienced developers who can potentially turn this into a built-in feature for the tvOS build. I've attached my hack to the WebServer initialization code.
https://gist.github.com/fellowgeek/65c536d2aebc5531649ac32a62ebd632
Warning: The tvOS port of RetroArch comes with the following important notice:
I came up with an idea to streamline the process by embedding ROMs into the build itself and implementing a small hack to copy the files from the App Bundle to the cache folder if they are not already there. You can find the code in the following gist. This solution works as expected and saves time from having to upload ROMs every time you reboot the Apple TV.
I'm interested in getting feedback from more experienced developers who can potentially turn this into a built-in feature for the tvOS build. I've attached my hack to the WebServer initialization code.
https://gist.github.com/fellowgeek/65c536d2aebc5531649ac32a62ebd632