-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIDK.java
executable file
·137 lines (121 loc) · 3.19 KB
/
IDK.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
public final class IDK {
public static void unpackConfig(StreamLoader streamLoader)
{
Stream stream = new Stream(streamLoader.getDataForName("idk.dat"));
length = stream.readUnsignedWord();
if(cache == null)
cache = new IDK[length];
for(int j = 0; j < length; j++)
{
if(cache[j] == null)
cache[j] = new IDK();
cache[j].readValues(stream);
}
}
private void readValues(Stream stream)
{
do
{
int i = stream.readUnsignedByte();
if(i == 0)
return;
if(i == 1)
anInt657 = stream.readUnsignedByte();
else
if(i == 2)
{
int j = stream.readUnsignedByte();
anIntArray658 = new int[j];
for(int k = 0; k < j; k++)
anIntArray658[k] = stream.readUnsignedWord();
} else
if(i == 3)
aBoolean662 = true;
else
if(i >= 40 && i < 50)
anIntArray659[i - 40] = stream.readUnsignedWord();
else
if(i >= 50 && i < 60)
anIntArray660[i - 50] = stream.readUnsignedWord();
else
if(i >= 60 && i < 70)
anIntArray661[i - 60] = stream.readUnsignedWord();
else
System.out.println("Error unrecognised config code: " + i);
} while(true);
}
public boolean method537()
{
if(anIntArray658 == null)
return true;
boolean flag = true;
for(int j = 0; j < anIntArray658.length; j++)
if(!Model.method463(anIntArray658[j]))
flag = false;
return flag;
}
public Model method538()
{
if(anIntArray658 == null)
return null;
Model aclass30_sub2_sub4_sub6s[] = new Model[anIntArray658.length];
for(int i = 0; i < anIntArray658.length; i++)
aclass30_sub2_sub4_sub6s[i] = Model.method462(anIntArray658[i]);
Model model;
if(aclass30_sub2_sub4_sub6s.length == 1)
model = aclass30_sub2_sub4_sub6s[0];
else
model = new Model(aclass30_sub2_sub4_sub6s.length, aclass30_sub2_sub4_sub6s);
for(int j = 0; j < 6; j++)
{
if(anIntArray659[j] == 0)
break;
model.method476(anIntArray659[j], anIntArray660[j]);
}
return model;
}
public boolean method539()
{
boolean flag1 = true;
for(int i = 0; i < 5; i++)
if(anIntArray661[i] != -1 && !Model.method463(anIntArray661[i]))
flag1 = false;
return flag1;
}
public Model method540()
{
Model aclass30_sub2_sub4_sub6s[] = new Model[5];
int j = 0;
for(int k = 0; k < 5; k++)
if(anIntArray661[k] != -1)
aclass30_sub2_sub4_sub6s[j++] = Model.method462(anIntArray661[k]);
Model model = new Model(j, aclass30_sub2_sub4_sub6s);
for(int l = 0; l < 6; l++)
{
if(anIntArray659[l] == 0)
break;
model.method476(anIntArray659[l], anIntArray660[l]);
}
return model;
}
private IDK()
{
anInt657 = -1;
anIntArray659 = new int[6];
anIntArray660 = new int[6];
aBoolean662 = false;
}
public static int length;
public static IDK cache[];
public int anInt657;
private int[] anIntArray658;
private final int[] anIntArray659;
private final int[] anIntArray660;
private final int[] anIntArray661 = {
-1, -1, -1, -1, -1
};
public boolean aBoolean662;
}