소스 검색

weitere quickiers

LH 2 달 전
부모
커밋
5b3eb267ef

+ 33 - 0
QuickStuff/src/main/java/QuickVerifyCrap/GECTFormatSplitter.java

@@ -0,0 +1,33 @@
+package QuickVerifyCrap;
+
+import java.io.File;
+import java.io.RandomAccessFile;
+
+public class GECTFormatSplitter
+{
+    public static void main(String[] args) throws Exception
+    {
+        RandomAccessFile base = new RandomAccessFile("/mnt/d/LOA/000023/002/CT-GREE.BIN","r");
+        String outbase = "/mnt/d/LOA/000023/toolref/3410";
+        int fcnt = 14;//Integer.reverseBytes(base.readInt());
+
+        base.seek(0x10000);
+        for(int i=0;i<fcnt;i++)
+        {
+            int ignored = base.readInt();
+            int ignored2=base.readInt();
+            int len = Integer.reverseBytes(base.readInt())*40;
+            int ignored3=base.readInt();
+            //base.readShort(); //ignored, constant
+            byte[] content = new byte[len];
+            base.read(content);
+
+
+            RandomAccessFile dump = new RandomAccessFile(outbase+ File.separator+"CTsubfile"+i,"rw");
+            dump.writeInt(Integer.reverseBytes(len+2));
+            dump.writeShort(Short.reverseBytes((short)16000));
+            dump.write(content);
+            dump.close();
+        }
+    }
+}

+ 33 - 0
QuickStuff/src/main/java/QuickVerifyCrap/GEXWFormatSplitter.java

@@ -0,0 +1,33 @@
+package QuickVerifyCrap;
+
+import java.io.File;
+import java.io.RandomAccessFile;
+
+public class GEXWFormatSplitter
+{
+    public static void main(String[] args) throws Exception
+    {
+        RandomAccessFile r = new RandomAccessFile("/mnt/d/LOA/000023/ORIG/GE_POEDAMERON.BIN","r");
+        String outbase = "/mnt/d/LOA/000023/toolref/3410";
+        r.seek(0x200);
+        {
+            int fcnt = 0;
+            int len = r.readInt();
+            len = Integer.reverseBytes(len);
+            while(len !=0 && len != -1)
+            {
+
+                r.seek(r.getFilePointer()-4);
+
+                byte[] bfr = new byte[len+4];
+                r.read(bfr);
+                RandomAccessFile dump = new RandomAccessFile(outbase+ File.separator+"subfile"+fcnt,"rw");
+                dump.write(bfr);
+                dump.close();
+                len=r.readInt();
+                len = Integer.reverseBytes(len);
+                fcnt++;
+            }
+        }
+    }
+}

+ 5 - 5
QuickStuff/src/main/java/QuickVerifyCrap/GEXWPatternMasseuse.java

@@ -5,19 +5,19 @@ import java.io.RandomAccessFile;
 public class GEXWPatternMasseuse
 {
     public static void main(String[] args) throws Exception{
-        RandomAccessFile base = new RandomAccessFile("/home/lh/code/LOA-23/HAXXZ0r_TESTS/GEXWING.BIN","r");
+        RandomAccessFile base = new RandomAccessFile("/mnt/d/LOA/000023/HAXXZ0r_TESTS/gplus_tests/GEXWING.BIN","r");
 
-        RandomAccessFile frq = new RandomAccessFile("/home/lh/code/LOA-23/HAXXZ0r_TESTS/GEXWING.BIN.freq.unified","rw");
+        RandomAccessFile frq = new RandomAccessFile("/mnt/d/LOA/000023/HAXXZ0r_TESTS/gplus_tests/GEXWING.BIN.f3.freq.unified","rw");
 
         for(int f=0;f<40;f++)
         {
 
-            base.seek(0);
+            base.seek(0xFA);
             byte[] freqmap = new byte[256];
 
-            int fcnt = Integer.reverseBytes(base.readInt());
+            int fcnt = 1;//Integer.reverseBytes(base.readInt());
 
-            base.seek(0x200);
+            base.seek(0x322c);
             for(int i=0;i<fcnt;i++)
             {
                 int len = Integer.reverseBytes(base.readInt())-2;