feat: abort patching process at any time (#1072)

This commit is contained in:
aAbed
2023-08-04 03:25:08 +05:45
committed by GitHub
parent fe75b75ddc
commit 374eb3d06d
4 changed files with 112 additions and 6 deletions

View File

@@ -202,6 +202,16 @@ class PatcherAPI {
}
}
Future<void> stopPatcher() async {
try {
await patcherChannel.invokeMethod('stopPatcher');
} on Exception catch (e) {
if (kDebugMode) {
print(e);
}
}
}
Future<bool> installPatchedFile(PatchedApplication patchedApp) async {
if (_outFile != null) {
try {