EmulationStation icon indicating copy to clipboard operation
EmulationStation copied to clipboard

Run the only ROM inside a folder without entering it

Open joeelliott opened this issue 11 years ago • 11 comments

could you include folders as being considered like a filename

example:

/usr/games/nintendo/Top-Gun-US.nes/Top-Gun-US.nes

the first Top-Gun-US.nes be listed as the game, or even the second, doesnt matter.

This paves the way for a cleaner system structure for roms (a la Higan) like /usr/games/Top-Gun.nes/program.rom /usr/games/Top-Gun.nes/cheats.bml /usr/games/Top-Gun.nes/screenshot-0001.png /usr/games/Top-Gun.nes/state-1.bst /usr/games/Top-Gun.nes/save.ram

If we begin supporting the structure then it makes for a much better project that is becoming its own distribution entirely.

joeelliott avatar Aug 29 '14 02:08 joeelliott

This should already work. I use ES with Higan myself.

Aloshi avatar Aug 29 '14 15:08 Aloshi

Yes, it's already working.

kreativekrise avatar Sep 02 '14 14:09 kreativekrise

So I confirmed it does display the game properly with a folder with the appropriate extension. but is there an easy way to execute a rom located inside the directory for those emulators that don't support this? as in being seperate from or or something along those lines, allowing emulators that don't support the structure to still be able to use it for a happier rom environment?

does this make sense?

joeelliott avatar Sep 06 '14 16:09 joeelliott

I had a related request #231 Currently I do it like pathtoemulator "%ROM_RAW%\%BASENAME%.fileextention" as a workaround.

kreativekrise avatar Sep 06 '14 17:09 kreativekrise

So what we need is a function which executes the ROM inside a folder... assuming there is only one ROM inside the folder ...without entering the folder. Right?

nilsbyte avatar Sep 07 '14 08:09 nilsbyte

Yes, I think that's correct!

kreativekrise avatar Sep 07 '14 11:09 kreativekrise

@Aloshi, can you evaluate this?

nilsbyte avatar Sep 07 '14 11:09 nilsbyte

there should be only one executable file in the folder, but there is also game specific stuff in there too. like the saves, cover-art, source-code or whatever.

so like ./nilsbyte.nes/nilsbyte.nes would be (in this example) the ROM, and then there is also ./nilsbyte.nes/gamesave.save and screenshots and whatever other ancillary stuff goes with each game separately.

joeelliott avatar Sep 07 '14 12:09 joeelliott

Yep i understand, you can put whatever you like there. ES doesn't care (and it has nothing to do with it). You will have to configure your emulators to save screenshots and saves to this folder (shouldn't be a problem).

nilsbyte avatar Sep 07 '14 13:09 nilsbyte

The option is important (or very useful)

In Sega CD es typical have a bin+cue+audio files, so is good have a folder for every game, but this implies in ES enter in one forlder to only pres again in one file (the file of the game)

Pacolo avatar May 04 '15 19:05 Pacolo

Agreed. This would be nice to have. Especially for Wii and Gamecube game rips.

ThomasHineXYZ avatar Oct 20 '22 08:10 ThomasHineXYZ