-
-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run PNG cartridges using libretro core #2048
Comments
There's a PR that might fix your issue by providing a reliable way to store cartridge data in PNGs. (I'm just guessing, in lack of sample PNG and detailed error messages I don't know what is causing your problem.) |
Ok, I've debugged that. The reason why it isn't working, is because this hasn't been implemented. The libretro code uses retro_load_game function to load a cartridge. That function in turn calls tic80_load, which in turn, calls tic_cart_load, but that last one is only for The way how the command line does it, goes like this: when the command is entered, onLoadCommandConfirmed checks if the cartridge data was loaded, and calls tic_cart_load to parse it. However if that's not true, then it checks the file's extension, and calls loadPngCart instead. As you can see, there's no My guess is, one should add the same Or maybe, as an alternative, PNG check should be added to Cheers, |
Thanks for such a detailed breakdown! |
I've added a little change to the PR which will solve your issue, should the PR get merged. Other than that I see no resolution, as linpng isn't linked into libtic80core.a, but that's absolutely needed with the current steganography method. Cheers, |
@bztsrc your PR was merged, can we close this? |
Unfortunately no, I've just added the fix in the PR's comments, because this issue did not existed when I opened the PR. But now I've added a new PR that actually fixes this. Cheers, |
Following up on this year-old issue. In addition to the PNG fix, TIC-80 has a number of languages that have had to be disabled in the libretro buildbot TIC-80 core. If you attempt to load a cart that uses one of those languages, it'll report |
When I open a PNG cartridge using RetroArch I have
code is empty
error message. I use the latest release at the time of writing (v1.0.2164, compiled it myself). The same cartridge run perfectly usingtic-80
utility.Also my RetroArch configuration can run pico-8 cartridges without any problem. But I had to disable built-in RetroArch image viewer for it.
The text was updated successfully, but these errors were encountered: