Giter Site home page Giter Site logo

Comments (13)

ekeeke avatar ekeeke commented on June 18, 2024

Yes, the emulator automatically try to load the .iso file when this game is detected: the ISO file must be named the same as the ROM file and be in the same directory.
Standalone version let you load the CD image file manually when asked by the game but that's not possible in Retroarch.

from genesis-plus-gx.

andres-asm avatar andres-asm commented on June 18, 2024

You're quite right it just works if you have the ISO alongside the rom.
It doesn't work if the rom file is compressed though.

And there is a subsystem api that allows these uncommon use cases (useful to combine roms or whatever, will be implemented in TGB dual eventually) it still lacks frontend support though but I thought it was worth mentioning

from genesis-plus-gx.

ekeeke avatar ekeeke commented on June 18, 2024

It will work as long as the name of the .iso file is the same as the filename passed as argument to load_rom function, which in libretro port corresponds to info->path sent by the retro_load_game API function.

File decompression is handled externally from the core by Retroarch, so if it changes the name of the ROM file inside the .zip after decompressing it or if that name did not match the .iso filename, this is likely where your issue comes from.

from genesis-plus-gx.

andres-asm avatar andres-asm commented on June 18, 2024

Nope, I verified that.

There have been some changes to the decompression stuff (7z support, multi file archives, etc) so that might be the issue I'll do more testing, maybe it's extracting to extraction dir instead now.

Thanks for the help πŸ‘

from genesis-plus-gx.

sergiobenrocha2 avatar sergiobenrocha2 commented on June 18, 2024

This feature only work in RA if you change the extension of the unzipped file from .md to .bin (and I have the same name for both rom and iso files). Does someone have an idea why it happens?

from genesis-plus-gx.

andres-asm avatar andres-asm commented on June 18, 2024

I think that's the way the developer intended it to work, it's not libretro related
it's the same on the Wii IIRC

On Sun, Jan 18, 2015 at 7:22 PM, SΓ©rgio Benjamim [email protected]
wrote:

This feature only work in RA if you change the extension of the unzipped
file from .md to .bin (and I have the same name for both rom and iso
files). Does someone have an idea why it happens?

β€”
Reply to this email directly or view it on GitHub
#34 (comment)
.

from genesis-plus-gx.

ekeeke avatar ekeeke commented on June 18, 2024

Hum, no, the extension of ROM file should not matter, it is indeed a bug in loadrom.c where it assumes the ROM extension is always 3 characters

from genesis-plus-gx.

ekeeke avatar ekeeke commented on June 18, 2024

This was fixed by bb53892

from genesis-plus-gx.

andres-asm avatar andres-asm commented on June 18, 2024

There is some oddity with this. I'm testing on windows 64bit.
I load retroarch like this:
retroarch --menu --verbose -c configs/andres.cfg

And it doesn't work even though the config only has this:
libretro_directory = ":\libretro"
libretro_info_path = ":\libretro"

If I just load retroarch with no arguments and the same config file in retroarch's location then it works
Again, for testing purposes the config only has this:
libretro_directory = ":\libretro"
libretro_info_path = ":\libretro"

from genesis-plus-gx.

andres-asm avatar andres-asm commented on June 18, 2024

Found the issue, this functionality doesn't like relative paths for the rom location

from genesis-plus-gx.

ekeeke avatar ekeeke commented on June 18, 2024

Indeed, the code now looks for the first occurence of '.' character to detect where the file extension starts, instead of just replacing the last 3 characters like it did before (which didn't work for .md files). So if the romfile path starts with "../" or "./", it won't work.

I had assumed the frontend would always pass the full path or that there can't be '.' character in directory names, which is a little bit unsafe. This can easily be fixed though, I will try to think about a safer solution.

from genesis-plus-gx.

andres-asm avatar andres-asm commented on June 18, 2024

Cool, wouldn't it be better to look for the last "."?

from genesis-plus-gx.

ekeeke avatar ekeeke commented on June 18, 2024

Should be better in 935a1f6

from genesis-plus-gx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.