Add profile module.

This commit is contained in:
wei
2026-07-14 22:22:58 +08:00
parent e15bd758f3
commit e3f761a995
9 changed files with 629 additions and 15 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ def download_file(file: FileObject, overwrite=True, progress_callback: Callable[
return file
def download_multiple_files(files: List[FileObject], download_callback: Callable[str]=None,
def download_multiple_files(files: List[FileObject], download_callback: Callable[[str], None]=None,
max_workers=THREADED_DOWNLOAD_MAX_WORKERS, progress_callback: Callable[str]=None) \
-> tuple[list[FileObject], list[FileObject]]:
"""
+13 -1
View File
@@ -74,4 +74,16 @@ class RuntimeManifestFetchException(LauncherException):
user_message = "Unable to fetch runtime manifest."
class RuntimeManifestDataException(LauncherException):
user_message = "Runtime manifest is missing or corrupted."
user_message = "Runtime manifest is missing or corrupted."
class ProfileException(LauncherException):
user_message = "An error occurred while processing profile."
class ProfileSaveException(LauncherException):
user_message = "Unable to save profile. Try again later."
class ProfileLoadException(LauncherException):
user_message = "Unable to load profile. Profile may corrupted"
class ProfileKeyNotFoundException(LauncherException):
user_message = "Specified profile key not found. Profile may corrupted."