feat: unp4k data forge support

This commit is contained in:
xkeyC
2025-12-11 00:19:13 +08:00
parent 23e909e330
commit 0126ae811e
29 changed files with 6235 additions and 1154 deletions

View File

@@ -124,6 +124,13 @@ class ToolsUIModel extends _$ToolsUIModel {
const Icon(FontAwesomeIcons.fileZipper, size: 24),
onTap: () => _unp4kc(context),
),
ToolsItemData(
"dcb_viewer",
S.current.tools_action_dcb_viewer,
S.current.tools_action_dcb_viewer_info,
const Icon(FluentIcons.database, size: 24),
onTap: () => _dcbViewer(context),
),
]);
state = state.copyWith(items: items);
@@ -702,6 +709,10 @@ class ToolsUIModel extends _$ToolsUIModel {
context.push("/tools/unp4kc");
}
Future<void> _dcbViewer(BuildContext context) async {
context.push("/tools/dcb_viewer");
}
static Future<void> rsiEnhance(BuildContext context, {bool showNotGameInstallMsg = false}) async {
if ((await SystemHelper.getPID("RSI Launcher")).isNotEmpty) {
if (!context.mounted) return;

View File

@@ -41,7 +41,7 @@ final class ToolsUIModelProvider
}
}
String _$toolsUIModelHash() => r'17890d6d16d8e9d98c42d06d9e6c6165965bcee0';
String _$toolsUIModelHash() => r'b0fefd36bd8f1e23fdd6123d487f73d78e40ad06';
abstract class _$ToolsUIModel extends $Notifier<ToolsUIState> {
ToolsUIState build();

File diff suppressed because it is too large Load Diff

View File

@@ -359,7 +359,7 @@ class _FileListItem extends HookWidget {
final dirName = item.name?.replaceAll(state.curPath.trim(), "") ?? "";
model.changeDir(dirName);
} else {
model.openFile(item.name ?? "");
model.openFile(item.name ?? "", context: context);
}
},
icon: Padding(