Esempio n. 1
0
    def __init__(self, system):
        Databases.__init__(self, system)
        HyperList.__init__(self, system)
        System.__init__(self, system)

        self.system = system

        self.full_sys = {
            "name": self.system,
            "type": self.platform_type,
            "year": self.year,
            "manufacturer": self.manufacturer,
            "enabled": "true"
        }

        # Paths
        self.rl_ui_path = os.path.join(self.rl_path, "RocketLauncherUI")
        self.settings_path = os.path.join(self.rl_path, "Settings",
                                          self.system)
        self.modules_path = os.path.join(self.rl_path, "Modules")

        # Media
        self.media_path = os.path.join(self.rl_path, "Media")
        self.artwork_path = os.path.join(self.media_path, "Artwork",
                                         self.system)
        self.backgrounds_path = os.path.join(self.media_path, "Backgrounds",
                                             self.system)
        self.bezels_path = os.path.join(self.media_path, "Bezels", self.system)
        self.controller_path = os.path.join(self.media_path, "Controller",
                                            self.system)
        self.fade_path = os.path.join(self.media_path, "Fade", self.system)
        self.guides_path = os.path.join(self.media_path, "Guides", self.system)
        self.logos_path = os.path.join(self.media_path, "Logos", self.system)
        self.manuals_path = os.path.join(self.media_path, "Manuals",
                                         self.system)
        self.multi_path = os.path.join(self.media_path, "MultiGame",
                                       self.system)
        self.music_path = os.path.join(self.media_path, "Music", self.system)
        self.video_path = os.path.join(self.media_path, "Videos", self.system)

        self.media_paths = [
            self.artwork_path, self.backgrounds_path, self.bezels_path,
            self.controller_path, self.fade_path, self.guides_path,
            self.logos_path, self.manuals_path, self.multi_path,
            self.music_path, self.video_path
        ]

        # UI
        self.db_path = os.path.join(self.rl_ui_path, "Databases", self.system)
        self.icon_path = os.path.join(self.rl_ui_path, "Media", "Icons")
        self.ui_logo_path = os.path.join(self.rl_ui_path, "Media", "Logos")
        self.ui_settings_path = os.path.join(self.rl_ui_path, "Settings")
Esempio n. 2
0
    def __init__(self, system=None):
        Arcade.__init__(self)
        System.__init__(self, system)

        self.system = system

        # HyperSpin Paths
        self.db_path = os.path.join(self.hs_path, "Databases", self.system)
        self.media_path = os.path.join(self.hs_path, "Media", self.system)
        self.settings_path = os.path.join(self.hs_path, "Settings")
        # Images
        self.images_path = os.path.join(self.media_path, "Images")
        self.artwork1_path = os.path.join(self.images_path, "Artwork1")
        self.artwork2_path = os.path.join(self.images_path, "Artwork2")
        self.artwork3_path = os.path.join(self.images_path, "Artwork3")
        self.artwork4_path = os.path.join(self.images_path, "Artwork4")
        self.backgrounds_path = os.path.join(self.images_path, "Backgrounds")
        self.genre_backgrounds_path = os.path.join(self.images_path, "Genre", "Backgrounds")
        self.genre_wheel_path = os.path.join(self.images_path, "Genre", "Wheel")
        self.letters_path = os.path.join(self.images_path, "Letters")
        self.other_path = os.path.join(self.images_path, "Other")
        self.particle_path = os.path.join(self.images_path, "Particle")
        self.special_path = os.path.join(self.images_path, "Special")
        self.wheel_path = os.path.join(self.images_path, "Wheel")
        # Other Media
        self.themes_path = os.path.join(self.media_path, "Themes")
        self.video_path = os.path.join(self.media_path, "Video")

        self.default_systems = ["Atari 5200",
                                "Atari Lynx",
                                "Daphne",
                                "NEC TurboGrafx-16",
                                "Nintendo 64",
                                "Nintendo Entertainment System",
                                "Nintendo Game Boy Advance",
                                "Panasonic 3DO",
                                "Sega 32X",
                                "Sega CD",
                                "Sega Dreamcast",
                                "Sega Game Gear",
                                "Sega Genesis",
                                "Sega Master System",
                                "Sega Model 2",
                                "SNK Neo Geo",
                                "SNK Neo Geo Pocket Color",
                                "Sony PlayStation",
                                "Super Nintendo Entertainment System"]