def __init__(self, app, container):
     basePlugin.BasePlugin.__init__(self, app, "PLUGINS", container)
     self.app = app
     self.container = container
     self.handler = Appstore("plugins", PAYLOAD_REPO, LIBGET_DIR)
     self.handler.set_path("plugins")
     if not self.handler.check_if_get_init(silent=True):
         self.handler.init_get()
class Plugin(basePlugin.BasePlugin):
    def __init__(self, app, container):
        basePlugin.BasePlugin.__init__(self, app, "PLUGINS", container)
        self.app = app
        self.container = container
        self.handler = Appstore("plugins", PAYLOAD_REPO, LIBGET_DIR)
        self.handler.set_path("plugins")
        if not self.handler.check_if_get_init(silent=True):
            self.handler.init_get()

    def get_pages(self):
        plugin_page = PluginPage(self.app, self.container, self.handler)
        return [plugin_page]

    def exit(self):
        pass
Пример #3
0
 def load_repos(self):
     with open(os.path.join(DIR, "repos.json")) as rf:
         repos = json.loads(rf.read())
         for r in repos:
             self.repos.append(
                 Appstore(r["name"],
                          r["path"],
                          image=r["image"].encode("latin1")))
Пример #4
0
 def __init__(self, app, container):
     basePlugin.BasePlugin.__init__(self, app, "WiiU", container)
     self.handler = Appstore("WiiU", WIIU_REPO, LIBGET_DIR)
Пример #5
0
	def __init__(self, repo_url: str, libget_dir: str):
		Appstore.__init__(self, "rcmPayloads", repo_url, libget_dir)
Пример #6
0
 def __init__(self, app, container):
     basePlugin.BasePlugin.__init__(self, app, "3ds", container)
     self.handler = Appstore("3ds", CP_REPO, LIBGET_DIR)
Пример #7
0
	def __init__(self, app, container):
		basePlugin.BasePlugin.__init__(self, app, "Switch", container)
		self.handler = Appstore("Switch", SWITCH_REPO, LIBGET_DIR)