libretro / libretro-uae

PUAE libretro
GNU General Public License v2.0
114 stars 61 forks source link

No CLI (Command Line) way to load games directly? #619

Closed darksgan closed 1 year ago

darksgan commented 1 year ago

I'm posting this question here because I can't find any clue on the internet, and I don't know where exactly to ask it here.

Ok, I'm making some scripts / batch files to load games directly calling them from another software... but I don't want to change disks in the Retroarch menu... so I'm trying to use some .lha files.

Here is the problem, I can load games directly in full screen with no problems from command line.

This is a part of the script, for example:

.\RetroArch-Win64\retroarch.exe -f -L RetroArch-Win64\cores\puae_libretro.dll Games\Amiga500\Game-ROM.7z

Being "Game-Rom", for example, Rod-Land_Amiga500.7z (a one floppy disk game, changing disks is not needed)

It works perfectly, but, if I try the same using a ".lha" file, it doesn't:

.\RetroArch-Win64\retroarch.exe -f -L RetroArch-Win64\cores\puae_libretro.dll Games\AmigaWHDL\PushOver_v1.23_1267.lha

It doesn't load the game because Retroarch try to load it as a floppy disk

imagen_2023-08-10_001344355

If I load it through the Retroarch menus, it loads perfectly:

imagen_2023-08-10_001557207 imagen_2023-08-10_001657299

Is there any way to tell Retroarch that the file to load is not a floopy but an HDD using command line?

Or is it some kind of issue?

Thanks and regards.

sonninnos commented 1 year ago

Beats me, I've always been loading LHAs via CLI just like that. I'd also rather use absolute paths for content.

The core gets the exact same path from CLI as it does when launching via the menu. Without logs hard to say more what could be the problem.

darksgan commented 1 year ago

Oh... my... god................... I typed the relative path wrong... I'm blind.

What I typed: "Games\Amiga500\Game-ROM.7z"

What I should have typed: ".\Games\Amiga500\Game-ROM.7z"

imagen_2023-08-10_094952449

You know " .\ " means "the current directory/path"... f*ck :_(

Finally it is:

.\RetroArch-Win64\retroarch.exe -f -L RetroArch-Win64\cores\%LibretroCore%.dll .\Juegos\%Plataforma%\%Juego-ROM%.%File-Extension%

imagen_2023-08-10_100343052

Obviously, I set the variables "Plataforma", "Juego-ROM", "Juego-Extension" previsouly in another place for making a generic "launch command" for all the games/files and platforms/systems which are gonna be emulated.

Thanks a lot, if you wouldn't have said anything about absolute path, I wouldn't have seen that I had typed the relative path wrong.

sonninnos commented 1 year ago

Ok, great, let's close this then.

darksgan commented 1 year ago

Ok, great, let's close this then.

Fine... thanks a lot :)