From e9f8c76b05a5ecb386bbc7b0ce2a4446177858fa Mon Sep 17 00:00:00 2001 From: Boris Timofeev Date: Sun, 2 Oct 2016 21:41:31 +0300 Subject: [PATCH] Extract strings from XDelta.java --- app/src/main/java/org/emunix/unipatcher/patch/XDelta.java | 4 ++-- app/src/main/res/values/strings.xml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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