Пример #1
0
def rom_to_shortcut(rom):
    emu = rom.console.emulator
    assert (emu is not None)

    return model.Shortcut(name=rom_shortcut_name(rom),
                          exe=emulators.emulator_rom_launch_command(emu, rom),
                          startdir=emulators.emulator_startdir(emu),
                          icon=rom.console.icon,
                          tags=[rom.console.fullname])
Пример #2
0
def rom_to_shortcut(rom):
    emu = rom.console.emulator
    assert emu is not None

    return model.Shortcut(
        name=rom_shortcut_name(rom),
        exe=emulators.emulator_rom_launch_command(emu, rom),
        startdir=emulators.emulator_startdir(emu),
        icon=rom.console.icon,
        tags=[rom.console.fullname],
    )
Пример #3
0
  def to_shortcut(self):
    emu = self.console.emulator
    assert(emu is not None)

    appname  = self.prefixed_name()
    exe      = emulators.emulator_rom_launch_command(emu, self)
    startdir = emulators.emulator_startdir(emu)
    icon     = self.console.icon
    category = self.console.fullname
    tags     = [category]
    return Shortcut(appname, exe, startdir, icon, tags)
Пример #4
0
def rom_to_shortcut(rom):
    emu = rom.console.emulator
    assert (emu is not None)

    return {
        'AppName': rom_shortcut_name(rom),
        'Exe': emulators.emulator_rom_launch_command(emu, rom),
        'StartDir': emulators.emulator_startdir(emu),
        'icon': rom.console.icon,
        'tags': {
            '0': rom.console.fullname
        }
    }
Пример #5
0
def rom_to_shortcut(rom):
    emu = rom.console.emulator
    assert (emu is not None)

    return steam_model.Shortcut(
        name=rom_shortcut_name(rom),
        exe=emulators.emulator_rom_exe(emu),
        startdir=emulators.emulator_startdir(emu),
        icon=rom.console.icon,
        shortcut_path="",
        launch_options=emulators.emulator_rom_launch_options(emu, rom),
        hidden=False,
        allow_desktop_config=False,
        open_vr=False,
        last_play_time=0,
        tags=[rom.console.fullname])