diff --git a/app/src/main/java/org/emunix/unipatcher/patch/XDelta.java b/app/src/main/java/org/emunix/unipatcher/patch/XDelta.java index 704c6bb..73c1681 100644 --- a/app/src/main/java/org/emunix/unipatcher/patch/XDelta.java +++ b/app/src/main/java/org/emunix/unipatcher/patch/XDelta.java @@ -52,7 +52,7 @@ public class XDelta extends Patch { try { System.loadLibrary("xdelta3"); } catch (UnsatisfiedLinkError e) { - throw new PatchException("Failed to load library libxdelta3.so"); + throw new PatchException(context.getString(R.string.notify_error_failed_load_lib_xdelta3)); } int ret = xdelta3apply(patchFile.getPath(), romFile.getPath(), outputFile.getPath()); @@ -74,7 +74,7 @@ public class XDelta extends Patch { case ERR_INVALID_INPUT: throw new PatchException(context.getString(R.string.notify_error_not_xdelta3_patch)); default: - throw new PatchException("Unknown error"); + throw new PatchException(context.getString(R.string.notify_error_unknown)); } } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 0ef2904..bb5a6a3 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -73,6 +73,8 @@ The patch file is corrupted This ROM is not compatible with the patch File have the wrong checksum after it was patched + Failed to load library libxdelta3.so + Unknown error Not a Sega Mega Drive ROM Fixing checksum