batocera-linux / batocera.linux

batocera.linux
https://batocera.org
Other
2k stars 514 forks source link

[BUTTERFLY V38] Finalize Spectravideo System #9601

Closed jimten69 closed 1 year ago

jimten69 commented 1 year ago

Hello, Spectravideo has already his own system icon in Batocera. Is it possible to finalize the system integration ?

To make it work, I added 2 things :

  1. : add the system in emulationstation :
  <system>
        <fullname>Spectravideo SV-328</fullname>
        <name>spectravideo</name>
        <manufacturer>Spectravideo</manufacturer>
        <release>1983</release>
        <hardware>spectravideo</hardware>
        <path>/userdata/roms/spectravideo</path>
        <extension>.zip .7z .cas</extension>
        <command>python /usr/lib/python3.11/site-packages/configgen/emulatorlauncher.py %CONTROLLERSCONFIG% -system %SYSTEM% -rom %ROM%</command>
        <platform>spectravideo</platform>
        <theme>spectravideo</theme>
        <emulators>
            <emulator name="openmsx">
                <cores>
                    <core default="true">openmsx</core>
                </cores>
            </emulator>
        </emulators>
  </system>
  1. :to load the Spectravideo bios in OpenMSX, add 2 lines in the /usr/lib/python3.11/site-packages/configgen/generators/openmsx/openmsxGenerator.py file :

    if system.name == "spectravideo":
        commandArray[1:1] = ["-machine", "Spectravideo_SVI-328"]

Hope this will help.

Thanks

dmanlfc commented 1 year ago

https://github.com/batocera-linux/batocera.linux/pull/9620