I forgot you can just type hex numbers in java ._.
This commit is contained in:
parent
875c7494d8
commit
754a4cdbc2
|
@ -9,9 +9,8 @@
|
||||||
<option name="autoReloadType" value="SELECTIVE" />
|
<option name="autoReloadType" value="SELECTIVE" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="cf74c012-cc69-4732-ac79-9ddfcbf803ee" name="Changes" comment="The compiler fucked itself">
|
<list default="true" id="cf74c012-cc69-4732-ac79-9ddfcbf803ee" name="Changes" comment="Going to bowling">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/net/screwgravity/vitality4j/standalone.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/net/screwgravity/vitality4j/standalone.java" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/src/net/screwgravity/vitality4j/tools.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/net/screwgravity/vitality4j/tools.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/net/screwgravity/vitality4j/tools.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/net/screwgravity/vitality4j/tools.java" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
|
@ -168,7 +167,15 @@
|
||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1728336100523</updated>
|
<updated>1728336100523</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="11" />
|
<task id="LOCAL-00011" summary="Going to bowling">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1728338443139</created>
|
||||||
|
<option name="number" value="00011" />
|
||||||
|
<option name="presentableId" value="LOCAL-00011" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1728338443139</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="12" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="VcsManagerConfiguration">
|
<component name="VcsManagerConfiguration">
|
||||||
|
@ -182,6 +189,7 @@
|
||||||
<MESSAGE value="shut up" />
|
<MESSAGE value="shut up" />
|
||||||
<MESSAGE value="start i/o logic, CLI is partial atm" />
|
<MESSAGE value="start i/o logic, CLI is partial atm" />
|
||||||
<MESSAGE value="The compiler fucked itself" />
|
<MESSAGE value="The compiler fucked itself" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="The compiler fucked itself" />
|
<MESSAGE value="Going to bowling" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="Going to bowling" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
|
@ -87,7 +87,7 @@ public class tools {
|
||||||
// magic number should be "PSAR" in ascii
|
// magic number should be "PSAR" in ascii
|
||||||
byte[] magic = new byte[4];
|
byte[] magic = new byte[4];
|
||||||
fromDisk.read(magic);
|
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?");
|
throw new IncorrectFileTypeException("Magic number invalid. Is this actually a PSARC?");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,8 +96,8 @@ public class tools {
|
||||||
fromDisk.read(version);
|
fromDisk.read(version);
|
||||||
|
|
||||||
byte[] algorithm_cast = new byte[]{0, 0, 0, 0};
|
byte[] algorithm_cast = new byte[]{0, 0, 0, 0};
|
||||||
byte[] header_zlib = new byte[]{122, 108, 105, 98};
|
byte[] header_zlib = new byte[]{0x7A, 0x6C, 0x69, 0x62};
|
||||||
byte[] header_lzma = new byte[]{108, 122, 109, 97};
|
byte[] header_lzma = new byte[]{0x6C, 0x7A, 0x6D, 0x61};
|
||||||
fromDisk.read(algorithm_cast);
|
fromDisk.read(algorithm_cast);
|
||||||
if (Arrays.equals(algorithm_cast, header_zlib)) {algorithm = CompressionFormats.ZLIB;}
|
if (Arrays.equals(algorithm_cast, header_zlib)) {algorithm = CompressionFormats.ZLIB;}
|
||||||
else if (Arrays.equals(algorithm_cast, header_lzma)) {algorithm = CompressionFormats.LZMA;}
|
else if (Arrays.equals(algorithm_cast, header_lzma)) {algorithm = CompressionFormats.LZMA;}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user