From 2370df4567bfab18ebfe1f65d6fe8ea15ec7ff69 Mon Sep 17 00:00:00 2001 From: Vhati Date: Sat, 27 Sep 2014 02:55:46 -0400 Subject: [PATCH] Continuation of commit 3bd4168 --- src/main/java/net/vhati/modmanager/core/ModPatchObserver.java | 1 + src/main/java/net/vhati/modmanager/core/ModUtilities.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/main/java/net/vhati/modmanager/core/ModPatchObserver.java b/src/main/java/net/vhati/modmanager/core/ModPatchObserver.java index 591f1e8..0174f8e 100644 --- a/src/main/java/net/vhati/modmanager/core/ModPatchObserver.java +++ b/src/main/java/net/vhati/modmanager/core/ModPatchObserver.java @@ -29,6 +29,7 @@ public interface ModPatchObserver { /** * Patching ended. + * * If anything went wrong, e may be non-null. */ public void patchingEnded( boolean outcome, Exception e ); diff --git a/src/main/java/net/vhati/modmanager/core/ModUtilities.java b/src/main/java/net/vhati/modmanager/core/ModUtilities.java index 73ded52..bd818cc 100644 --- a/src/main/java/net/vhati/modmanager/core/ModUtilities.java +++ b/src/main/java/net/vhati/modmanager/core/ModUtilities.java @@ -461,6 +461,9 @@ public class ModUtilities { boolean isTxt = innerPath.matches( "^.*(?:[.]txt)$" ); boolean isXML = innerPath.matches( "^.*(?:[.]xml[.]append|[.]append[.]xml|[.]xml)$" ); boolean isXMLAppend = innerPath.matches( "^.*(?:[.]xml[.]append|[.]append[.]xml)$" ); + if ( innerPath.matches( "^.*(?:[.]xml[.]rawappend|[.]rawappend[.]xml)$" ) ) { + isXML = false; // Raw xml is exempt from normal processing. + } DecodeResult decodeResult = ModUtilities.decodeText( zis, modFile.getName()+":"+innerPath );