def register_and_load_machine_assets(self):
        """Called on MPF boot to register any assets found in the machine-wide
        configuration files. (i.e. any assets not specified in mode config
        files.)

        If an asset is set with the load type of 'preload', this method will
        also load the asset file into memory.

        """
        self.log.debug("Registering machine-wide %s", self.config_section)

        if self.config_section in self.machine.config:
            config = self.machine.config[self.config_section]
        else:
            config = None

        self.machine.config[self.config_section] = self.register_assets(
            config=config)

        self.log.debug("Loading machine-wide 'preload' %s", self.config_section)

        # Load preload systemwide assets
        self.load_assets(self.machine.config[self.config_section],
                         load_key='preload')
dataset/ETHPy150Open missionpinball/mpf/mpf/system/assets.py/AssetManager.register_and_load_machine_assets/original