Update to v0.1.4

Add `is_function_in_file` and if the key is "<ORIGINAL>", the `TranslationManager.translate()` will return it directly. (For some strings that don't need to translate in specific language)

Launcher
Update to 0.1.0a0

Add plugin system support and add some useful apis for plugin.
Add "Refresh avatar cache" to account page.
This commit is contained in:
wei committed 2026-10-30 00:16:04 +08:00
1 parent deb06f0190
commit c3662d4cc6
34 files changed
+2192 -57

No files matched your search

+5
View File
@@ -1359,3 +1359,8 @@ class GameManager(QObject):
self.game_file = GameFileManager(self.app, manifest_manager=self.manifest)
self.launch = LaunchManager(self.app, self.manifest,
self.java, self.game_file, self.account_manager, self.profile_mgr)
def register_plugin_apis(self, plugin_manager):
plugin_manager.register_api("launcher.game.versions.list", self.manifest.list_available_profile_versions)
plugin_manager.register_api("launcher.game.java.list", self.java.list_runtimes)
plugin_manager.register_api("launcher.game.is_profile_running", self.launch.is_profile_running)