FrodeSolheim / fs-uae

Cross-platform Amiga emulator with a slight focus on gaming, but also with solid support for productivity apps including just-in-time (JIT) compilation.
https://fs-uae.net/
GNU General Public License v2.0
469 stars 94 forks source link

Problem running WHDLoad game from command line #330

Closed VanackSabbadium closed 1 year ago

VanackSabbadium commented 1 year ago

Hi, i can easily run any WHDLoad game using FS-UAE Launcher, but i can't do it in a terminal using either fs-uae-launcher or fs-uae command. As the first one, i don't know which are the commands. Running "fs-uae-launcher --help" It says "options for directly launching games", but it doesn't provide any -- option to launch a game (--launch? --run? --start?) so i don't know how to do it. I read somewhere that you must use an UUID provided by openretro.org website, which seems to be in my case "shadow-of-the-beast-iii", so i tried running "fs-uae-launcher shadow-of-the-beast-iii" but it keeps me opening the launcher. As the second one, i tried using this line:

fs-uae --amiga_model=A600 --fast_memory=8192 --hard_drive_0=ShadowOfTheBeast3_v2.1_0016.lha --fullscreen=1 --fullscreen_mode=fullscreen --stretch=1 --x_whdload_args="ShadowOfTheBeast3.slave PRELOAD"

The file "ShadowOfTheBeast3_v2.1_0016.lha" is in the correct directory ~/FS-UAE/Hard Drives, and the whdload argument is the same as put into the launcher. The emulator starts, but it shows a white screen and nothing else, even if the parameters are the same as the configuration that i created in the launcher, which is:

[fs-uae] amiga_model = A600 fast_memory = 8192 floppy_drive_volume_empty = 0 hard_drive_0 = ShadowOfTheBeast3_v2.1_0016.lha joystick_port_1 = 360 Wireless Receiver (XBOX) stretch = 1 x_whdload_args = ShadowOfTheBeast3.slave PRELOAD

So i have no choice but to use the GUI, which is nice, but i'd really like to launch the game directly from terminal. Any suggestion?

Thank you so much in advance.

VanackSabbadium commented 1 year ago

I solved it, thanks anyway. The solution was to launch the command:

fs-uae-launcher /path/to/lha/nameofthegame.lha

in my case:

fs-uae-launcher /home/vanacksabbadium/FS-UAE/Hard\ Drives/ShadowOfTheBeast3_v2.1_0016.lha