Esempio n. 1
0
        self.emulator = Emulator(
            "desmume", path=self.options[Option.DESMUME_PATH]
        )
        self.emulator.allow_home_access = True

    def prepare(self):
        rom_path = self.get_game_file()
        self.emulator.args.append(rom_path)

    def finish(self):
        pass


NDS_PLATFORM_ID = "nds"
NDS_BIOS7_BIN = KnownFile(
    "24f67bdea115a2c847c8813a262502ee1607b7df", NDS_PLATFORM_ID, "bios7.bin"
)
NDS_BIOS9_BIN = KnownFile(
    "bfaac75f101c135e32e2aaf541de6b1be4c8c62d", NDS_PLATFORM_ID, "bios9.bin"
)
NDS_FIRMWARE_BIN = KnownFile(
    "ae22de59fbf3f35ccfbeacaeba6fa87ac5e7b14b", NDS_PLATFORM_ID, "firmware.bin"
)


class MelonDSDriver(GameDriver):
    PORTS = [{"description": "Controller 1", "types": [NDS_CONTROLLER]}]

    def __init__(self, fsgc):
        super().__init__(fsgc)
        self.helper = NintendoDSHelper(self.options)
import traceback

from fsgs.drivers.gamedriver import GameDriver
from fsgs.knownfiles import KnownFile
from fsgs.option import Option
from fsgs.platforms import PLATFORM_ATARI

ATARI_MODEL_520ST = "520st"
ATARI_MODEL_1040ST = "1040st"
ATARI_WIDTH = 832
# ATARI_HEIGHT = 576
ATARI_HEIGHT = 552
# noinspection SpellCheckingInspection
ATARI_TOS_102_UK = KnownFile(
    "87900a40a890fdf03bd08be6c60cc645855cbce5",
    PLATFORM_ATARI,
    "TOS v1.02 (1987)(Atari Corp)(Mega ST)(GB)[MEGA TOS].img",
)
# noinspection SpellCheckingInspection
ATARI_TOS_104_UK = KnownFile(
    "9526ef63b9cb1d2a7109e278547ae78a5c1db6c6",
    PLATFORM_ATARI,
    "TOS v1.04 (1989)(Atari Corp)(Mega ST)(GB)[Rainbow TOS].img",
)
# noinspection SpellCheckingInspection
ATARI_TOS_1062_UK = KnownFile(
    "70db24a7c252392755849f78940a41bfaebace71",
    PLATFORM_ATARI,
    "TOS v1.62 (1990)(Atari)(GB)[STE TOS, Rev 2][STE].img",
)
Esempio n. 3
0
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
from fsgs.knownfiles import KnownFile
from fsgs.platforms import PLATFORM_ZXS

ZXS_48_ROM = KnownFile("5ea7c2b824672e914525d1d5c419d71b84a426a2",
                       PLATFORM_ZXS, "48.rom")
ZXS_128_0_ROM = KnownFile("4f4b11ec22326280bdb96e3baf9db4b4cb1d02c5",
                          PLATFORM_ZXS, "128-0.rom")
ZXS_128_1_ROM = KnownFile("80080644289ed93d71a1103992a154cc9802b2fa",
                          PLATFORM_ZXS, "128-1.rom")

ZXS_PLUS2_0_ROM = KnownFile("72703f9a3e734f3c23ec34c0727aae4ccbef9a91",
                            PLATFORM_ZXS, "plus2-0.rom")
ZXS_PLUS2_1_ROM = KnownFile("de8b0d2d0379cfe7c39322a086ca6da68c7f23cb",
                            PLATFORM_ZXS, "plus2-1.rom")

# ZXS_PLUS3_0_ROM = KnownFile(
#     "e319ed08b4d53a5e421a75ea00ea02039ba6555b", PLATFORM_ZXS, "plus3-0.rom"
# )
# ZXS_PLUS3_1_ROM = KnownFile(
#     "c9969fc36095a59787554026a9adc3b87678c794", PLATFORM_ZXS, "plus3-1.rom"
Esempio n. 4
0
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
from fsgs.knownfiles import KnownFile
from fsgs.platforms import PLATFORM_ZXS

ZXS_48_ROM = KnownFile(
    "5ea7c2b824672e914525d1d5c419d71b84a426a2", PLATFORM_ZXS, "48.rom")
ZXS_128_0_ROM = KnownFile(
    "4f4b11ec22326280bdb96e3baf9db4b4cb1d02c5", PLATFORM_ZXS, "128-0.rom")
ZXS_128_1_ROM = KnownFile(
    "80080644289ed93d71a1103992a154cc9802b2fa", PLATFORM_ZXS, "128-1.rom")
ZXS_PLUS3_0_ROM = KnownFile(
    "e319ed08b4d53a5e421a75ea00ea02039ba6555b", PLATFORM_ZXS, "plus3-0.rom")
ZXS_PLUS3_1_ROM = KnownFile(
    "c9969fc36095a59787554026a9adc3b87678c794", PLATFORM_ZXS, "plus3-1.rom")
ZXS_PLUS3_2_ROM = KnownFile(
    "22e50c6ba4157a3f6a821bd9937cd26e292775c6", PLATFORM_ZXS, "plus3-2.rom")
ZXS_PLUS3_3_ROM = KnownFile(
    "65f031caa8148a5493afe42c41f4929deab26b4e", PLATFORM_ZXS, "plus3-3.rom")
Esempio n. 5
0
import filecmp
import os

import shutil

from fsgs.drivers.messdriver import MessDriver
from fsgs.knownfiles import KnownFile
from fsgs.platform import Platform
from fsgs.platforms.loader import SimpleLoader
from fsgs.plugins.plugin_manager import PluginManager

# noinspection SpellCheckingInspection
A5200_ROM = KnownFile(
    "6ad7a1e8c9fad486fbec9498cb48bf5bc3adc530", "A5200", "5200.rom")
# noinspection SpellCheckingInspection
A5200_ROM_ALT = KnownFile(
    "1d2a3f00109d75d2d79fecb565775eb95b7d04d5", "A5200", "5200a.rom")
A5200_CONTROLLER = {
    "type": "controller",
    "description": "Controller",
    "mapping_name": "atari5200",
}


class Atari5200PlatformHandler(Platform):
    PLATFORM_ID = "A5200"
    PLATFORM_NAME = "Atari 5200"

    def driver(self, fsgs):
        return Atari5200MessDriver(fsgs)
Esempio n. 6
0
from fsgs.knownfiles import KnownFile
from fsgs.platform import Platform
from fsgs.platforms.loader import CDPlatformLoader
from fsgs.platforms.turbografx16 import TurboGrafx16MednafenDriver

TGCD_PLATFORM_ID = "tgcd"
TGCD_PLATFORM_NAME = "TurboGrafx-CD"
TGCD_CONTROLLER = {
    "type": "gamepad",
    "description": "Gamepad",
    "mapping_name": "turbografx16",
}
SYSCARD3_PCE = KnownFile(
    "1b4c260326d905bc718812dad0f68089977f427b",
    TGCD_PLATFORM_ID,
    "syscard3.pce",
)


class TurboGrafxCDPlatform(Platform):
    PLATFORM_ID = TGCD_PLATFORM_ID
    PLATFORM_NAME = TGCD_PLATFORM_NAME

    def __init__(self):
        super().__init__()

    def driver(self, fsgc):
        return TurboGrafxCDMednafenDriver(fsgc)

    def loader(self, fsgc):
        return TurboGrafxCDLoader(fsgc)
Esempio n. 7
0
PSX_GAMEPAD = {
    "type": "gamepad",
    "description": "Digital Gamepad",
    "mapping_name": "playstation",
}
PSX_DUALSHOCK = {
    "type": "dualshock",
    "description": "DualShock Gamepad",
    "mapping_name": "playstation",  # FIXME
}
PSX_MOUSE = {
    "type": "mouse",
    "description": "PlayStation Mouse",
    "mapping_name": "",  # FIXME
}
PSX_SCPH5500_BIN = KnownFile("b05def971d8ec59f346f2d9ac21fb742e3eb6917",
                             PSX_PLATFORM_ID, "scph5500.bin")
PSX_SCPH5501_BIN = KnownFile("0555c6fae8906f3f09baf5988f00e55f88e9f30b",
                             PSX_PLATFORM_ID, "scph5501.bin")
# noinspection SpellCheckingInspection
PSX_SCPH5502_BIN = KnownFile("f6bc2d1f5eb6593de7d089c425ac681d6fffd3f0",
                             PSX_PLATFORM_ID, "scph5502.bin")
PSX_ROMS_FOR_REGION = {
    "JA": ["scph5500.bin", PSX_SCPH5500_BIN.sha1],
    "US": ["scph5501.bin", PSX_SCPH5501_BIN.sha1],
    "EU": ["scph5502.bin", PSX_SCPH5502_BIN.sha1],
}
PSX_MODEL_NTSC = "ntsc"
PSX_MODEL_NTSC_J = "ntsc-j"
PSX_MODEL_PAL = "pal"