mirror of
https://github.com/xzb23/mods_unified_management.git
synced 2026-11-24 18:25:26 +08:00
完成菜单部分+hmcl适配
This commit is contained in:
4 files changed
+204
-75
No files matched your search
+21
-1
@@ -1,3 +1,5 @@
|
||||
from _in_package import typing
|
||||
|
||||
WORK_DIR: str = "./"
|
||||
MODS_DIR: str
|
||||
VERSIONS_MODS_LIST_PATH: str
|
||||
@@ -8,4 +10,22 @@ wait_c: int = 100
|
||||
|
||||
# nf: Not found
|
||||
# te: Type err
|
||||
EXIT_CODE = {"ok": 0, "nf": -1, "te": -2}
|
||||
EXIT_CODE = {"ok": 0, "nf": -1, "te": -2}
|
||||
|
||||
menu = """
|
||||
检测到mods文件改动
|
||||
请选择:
|
||||
1. 添加到mum模组清单,并按照清单拉取模组
|
||||
2. 清除当前mods变更并按照清单拉取模组
|
||||
3. 按照当前mods目录重建模组清单(请确认你知道这会发生什么)
|
||||
4. 按照清单拉取模组并取消管理
|
||||
"""
|
||||
|
||||
class MenuCode(typing.NamedTuple):
|
||||
add_: str = "1"
|
||||
del_: str = "2"
|
||||
re_: str = "3"
|
||||
uninstall: str = "4"
|
||||
MENU_CODE = MenuCode()
|
||||
|
||||
EXE_DIR: str
|
||||
Reference in new issue
Block a user