Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

from lutris.runners.runner import Runner 

 

 

class vice(Runner): 

    """ Commodore Emulator """ 

    package = "vice" 

    executable = "x64" 

    platform = "Commodore 64" 

 

    game_options = [{ 

        "option": "main_file", 

        "type": "file", 

        "label": "Disk File" 

    }] 

 

    runner_options = [ 

        { 

            "option": "joy", 

            "type": "bool", 

            "label": "Use joysticks" 

        }, 

        { 

            "option": "fullscreen", 

            "type": "bool", 

            "label": "Fullscreen" 

        }, 

        { 

            "option": "double", 

            "type": "bool", 

            "label": "Double Size" 

        } 

    ] 

 

    def play(self): 

        params = [self.executable] 

        settings = self.settings 

        if "fullscreen" in settings["vice"]: 

            if settings["vice"]["fullscreen"]: 

                params.append("-fullscreen") 

        if "double" in settings["vice"]: 

            if settings["vice"]["double"]: 

                params.append("-VICIIdsize") 

        if "joy" in settings["vice"]: 

            if settings["vice"]["joy"]: 

                params += ["-joydev2", "4", "-joydev1", "5"] 

        params.append("\"%s\"" % settings['game']['main_file']) 

        return {'command': [self.executable] + params}