import utils.videoMode as videoMode import utils.bezels as bezelsUtil from utils.logger import get_logger eslog = get_logger(__name__) generators = { 'kodi': KodiGenerator(), 'linapple': LinappleGenerator(), 'libretro': LibretroGenerator(), 'moonlight': MoonlightGenerator(), 'scummvm': ScummVMGenerator(), 'dosbox': DosBoxGenerator(), 'dosbox_staging': DosBoxStagingGenerator(), 'dosboxx': DosBoxxGenerator(), 'mupen64plus': MupenGenerator(), 'vice': ViceGenerator(), 'fsuae': FsuaeGenerator(), 'amiberry': AmiberryGenerator(), 'flycast': FlycastGenerator(), 'dolphin': DolphinGenerator(), 'pcsx2': Pcsx2Generator(), 'ppsspp': PPSSPPGenerator(), 'citra' : CitraGenerator(), 'daphne' : DaphneGenerator(), 'cannonball' : CannonballGenerator(), 'sdlpop' : SdlPopGenerator(), 'openbor' : OpenborGenerator(), 'wine' : WineGenerator(), 'cemu' : CemuGenerator(), 'melonds' : MelonDSGenerator(),
Fba2xGenerator(), 'kodi': KodiGenerator(), 'linapple': LinappleGenerator(os.path.join(batoceraFiles.HOME_INIT, '.linapple'), os.path.join(batoceraFiles.HOME, '.linapple')), 'libretro': LibretroGenerator(), 'moonlight': MoonlightGenerator(), 'scummvm': ScummVMGenerator(), 'dosbox': DosBoxGenerator(), 'mupen64plus': MupenGenerator(), 'vice': ViceGenerator(), 'fsuae': FsuaeGenerator(), 'amiberry': AmiberryGenerator(), 'reicast': ReicastGenerator(), 'dolphin': DolphinGenerator(), 'pcsx2': Pcsx2Generator(), 'ppsspp': PPSSPPGenerator(), 'citra':
shaders='', ratio='auto', smooth='2', rewind='false', emulator='mupen64plus') # test inputs basicInputs1 = { 'hotkey': controllersConfig.Input("hotkey", "button", "10", "1") } basicController1 = controllersConfig.Controller("contr1", "joypad", "GUID1", '1', "0", "Joypad1RealName", basicInputs1) basicControllers = dict() basicControllers['1'] = basicController1 mupenGen = MupenGenerator() class TestMupenControllers(unittest.TestCase): def test_write_hotkey(self): mupenControllers.writeControllersConfig(basicControllers) self.assertEquals( mupenControllers.mupenSettings.load("Joy Mapping Stop"), 'J0B10') def test_commandline_core_n64(self): command = mupenGen.generate(n64, "rom.n64", basicControllers) self.assertEquals(command.array, [ 'mupen64plus', '--corelib', '/usr/lib/libmupen64plus.so.2.0.0', '--gfx', '/usr/lib/mupen64plus/mupen64plus-video-n64.so', '--configdir', '/recalbox/configs/mupen64/', '--datadir', '/recalbox/configs/mupen64/', "rom.n64"