diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 6c2156f..88a0ed1 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -9,9 +9,8 @@
-
+
-
@@ -168,7 +167,15 @@
1728336100523
-
+
+
+ 1728338443139
+
+
+
+ 1728338443139
+
+
@@ -182,6 +189,7 @@
-
+
+
\ No newline at end of file
diff --git a/src/net/screwgravity/vitality4j/tools.java b/src/net/screwgravity/vitality4j/tools.java
index 797f382..42d79b2 100644
--- a/src/net/screwgravity/vitality4j/tools.java
+++ b/src/net/screwgravity/vitality4j/tools.java
@@ -87,7 +87,7 @@ public class tools {
// magic number should be "PSAR" in ascii
byte[] magic = new byte[4];
fromDisk.read(magic);
- if (!Arrays.equals(magic, new byte[]{80, 83, 65, 82})) {
+ if (!Arrays.equals(magic, new byte[]{0x50, 0x53, 0x41, 0x52})) {
throw new IncorrectFileTypeException("Magic number invalid. Is this actually a PSARC?");
}
@@ -96,8 +96,8 @@ public class tools {
fromDisk.read(version);
byte[] algorithm_cast = new byte[]{0, 0, 0, 0};
- byte[] header_zlib = new byte[]{122, 108, 105, 98};
- byte[] header_lzma = new byte[]{108, 122, 109, 97};
+ byte[] header_zlib = new byte[]{0x7A, 0x6C, 0x69, 0x62};
+ byte[] header_lzma = new byte[]{0x6C, 0x7A, 0x6D, 0x61};
fromDisk.read(algorithm_cast);
if (Arrays.equals(algorithm_cast, header_zlib)) {algorithm = CompressionFormats.ZLIB;}
else if (Arrays.equals(algorithm_cast, header_lzma)) {algorithm = CompressionFormats.LZMA;}