feat: unp4kc

This commit is contained in:
2024-04-14 19:52:42 +08:00
parent dd17ddc92a
commit 90bb8e6611
18 changed files with 859 additions and 13 deletions

View File

@@ -104,6 +104,13 @@ class ToolsUIModel extends _$ToolsUIModel {
const Icon(FluentIcons.admin, size: 24),
onTap: () => _adminRSILauncher(context),
),
ToolsItemData(
"unp4kc",
"P4K 查看器",
"解包星际公民 p4k 文件",
const Icon(FontAwesomeIcons.fileZipper, size: 24),
onTap: () => _unp4kc(context),
),
];
state = state.copyWith(items: items);
@@ -573,4 +580,8 @@ class ToolsUIModel extends _$ToolsUIModel {
context: context,
builder: (BuildContext context) => const HostsBoosterDialogUI());
}
_unp4kc(BuildContext context) async {
context.push("/tools/unp4kc");
}
}