From 73adafbdb021a14fb2c8e9564c2ea09e22478254 Mon Sep 17 00:00:00 2001 From: Denis Molony Date: Thu, 22 Sep 2016 14:42:55 +1000 Subject: [PATCH] forget --- .../diskbrowser/wizardry/Wiz5Monsters.java | 31 ++++++++++++++++--- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/src/com/bytezone/diskbrowser/wizardry/Wiz5Monsters.java b/src/com/bytezone/diskbrowser/wizardry/Wiz5Monsters.java index c07c7de..eeb47a1 100644 --- a/src/com/bytezone/diskbrowser/wizardry/Wiz5Monsters.java +++ b/src/com/bytezone/diskbrowser/wizardry/Wiz5Monsters.java @@ -75,12 +75,17 @@ public class Wiz5Monsters extends AbstractFile implements Iterable 0) + if (text.length () > 1) + { text.deleteCharAt (text.length () - 1); + text.deleteCharAt (text.length () - 1); + } return text.toString (); } @@ -115,7 +120,10 @@ public class Wiz5Monsters extends AbstractFile implements Iterable 0; p += 16, length -= 16) + { + int len = length > 15 ? 16 : length; + String s = HexFormatter.getHexString (buffer, p, len); + System.out.println (s); + } + System.out.println (); } @Override