Advertisement
Guest User

Untitled

a guest
May 30th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.55 KB | None | 0 0
  1. private void readValues667(Stream buffer) {
  2. int i = -1;
  3. label0: do {
  4. int opcode;
  5. do {
  6. opcode = buffer.readUnsignedByte();
  7. if (opcode == 0)
  8. break label0;
  9. if (opcode == 1) {
  10. int k = buffer.readUnsignedByte();
  11. if (k > 0)
  12. if (anIntArray773 == null || lowMem) {
  13. anIntArray776 = new int[k];
  14. anIntArray773 = new int[k];
  15. for (int k1 = 0; k1 < k; k1++) {
  16. anIntArray773[k1] = buffer.readUnsignedWord();
  17. anIntArray776[k1] = buffer.readUnsignedByte();
  18. }
  19. } else {
  20. buffer.currentOffset += k * 3;
  21. }
  22. } else if (opcode == 2)
  23. name = buffer.readString();
  24. else if (opcode == 3)
  25. description = buffer.readBytes();
  26. else if (opcode == 5) {
  27. int l = buffer.readUnsignedByte();
  28. if (l > 0)
  29. if (anIntArray773 == null || lowMem) {
  30. anIntArray776 = null;
  31. anIntArray773 = new int[l];
  32. for (int l1 = 0; l1 < l; l1++)
  33. anIntArray773[l1] = buffer.readUnsignedWord();
  34. } else {
  35. ;//buffer.currentOffset += l * 2;
  36. }
  37. } else if (opcode == 14)
  38. anInt744 = buffer.readUnsignedByte();
  39. else if (opcode == 15)
  40. anInt761 = buffer.readUnsignedByte();
  41. else if (opcode == 17)
  42. aBoolean767 = false;
  43. else if (opcode == 18)
  44. aBoolean757 = false;
  45. else if (opcode == 19) {
  46. i = buffer.readUnsignedByte();
  47. if (i == 1)
  48. hasActions = true;
  49. } else if (opcode == 21)
  50. aBoolean762 = true;
  51. else if (opcode == 22)
  52. aBoolean769 = false;//
  53. else if (opcode == 23)
  54. aBoolean764 = true;
  55. else if (opcode == 24) {
  56. anInt781 = buffer.readUnsignedWord();
  57. if (anInt781 == 65535)
  58. anInt781 = -1;
  59. } else if (opcode == 28)
  60. anInt775 = buffer.readUnsignedByte();
  61. else if (opcode == 29)
  62. aByte737 = buffer.readSignedByte();
  63. else if (opcode == 39)
  64. aByte742 = buffer.readSignedByte();
  65. else if (opcode >= 30 && opcode < 39) {
  66. if (actions == null)
  67. actions = new String[10];
  68. actions[opcode - 30] = buffer.readString();
  69. if (actions[opcode - 30].equalsIgnoreCase("hidden"))
  70. actions[opcode - 30] = null;
  71. } else if (opcode == 40) {
  72. int i1 = buffer.readUnsignedByte();
  73. modifiedModelColors = new int[i1];
  74. originalModelColors = new int[i1];
  75. for (int i2 = 0; i2 < i1; i2++) {
  76. modifiedModelColors[i2] = buffer.readUnsignedWord();
  77. originalModelColors[i2] = buffer.readUnsignedWord();
  78. }
  79. } else if (opcode == 60)
  80. anInt746 = buffer.readUnsignedWord();
  81. else if (opcode == 62)
  82. aBoolean751 = true;
  83. else if (opcode == 64)
  84. aBoolean779 = false;
  85. else if (opcode == 65)
  86. anInt748 = buffer.readUnsignedWord();
  87. else if (opcode == 66)
  88. anInt772 = buffer.readUnsignedWord();
  89. else if (opcode == 67)
  90. anInt740 = buffer.readUnsignedWord();
  91. else if (opcode == 68)
  92. anInt758 = buffer.readUnsignedWord();
  93. else if (opcode == 69)
  94. anInt768 = buffer.readUnsignedByte();
  95. else if (opcode == 70)
  96. anInt738 = buffer.readSignedWord();
  97. else if (opcode == 71)
  98. anInt745 = buffer.readSignedWord();
  99. else if (opcode == 72)
  100. anInt783 = buffer.readSignedWord();
  101. else if (opcode == 73)
  102. aBoolean736 = true;
  103. else if (opcode == 74) {
  104. aBoolean766 = true;
  105. } else {
  106. if (opcode != 75)
  107. continue;
  108. anInt760 = buffer.readUnsignedByte();
  109. }
  110. continue label0;
  111. } while (opcode != 77);
  112. anInt774 = buffer.readUnsignedWord();
  113. if (anInt774 == 65535)
  114. anInt774 = -1;
  115. anInt749 = buffer.readUnsignedWord();
  116. if (anInt749 == 65535)
  117. anInt749 = -1;
  118. int j1 = buffer.readUnsignedByte();
  119. childrenIDs = new int[j1 + 1];
  120. for (int j2 = 0; j2 <= j1; j2++) {
  121. childrenIDs[j2] = buffer.readUnsignedWord();
  122. if (childrenIDs[j2] == 65535)
  123. childrenIDs[j2] = -1;
  124. }
  125.  
  126. } while (true);
  127. if (i == -1) {
  128. hasActions = anIntArray773 != null && (anIntArray776 == null || anIntArray776[0] == 10);
  129. if (actions != null)
  130. hasActions = true;
  131. }
  132. if (aBoolean766) {
  133. aBoolean767 = false;
  134. aBoolean757 = false;
  135. }
  136. if (anInt760 == -1)
  137. anInt760 = aBoolean767 ? 1 : 0;
  138. }
  139.  
  140.  
  141. private void readValues377(Stream stream)
  142. {
  143. int i = -1;
  144. label0:
  145. do
  146. {
  147. int j;
  148. do
  149. {
  150. j = stream.readUnsignedByte();
  151. if(j == 0)
  152. break label0;
  153. if(j == 1)
  154. {
  155. int k = stream.readUnsignedByte();
  156. if(k > 0)
  157. if(anIntArray773 == null || lowMem)
  158. {
  159. anIntArray776 = new int[k];
  160. anIntArray773 = new int[k];
  161. for(int k1 = 0; k1 < k; k1++)
  162. {
  163. anIntArray773[k1] = stream.readUnsignedWord();
  164. anIntArray776[k1] = stream.readUnsignedByte();
  165. }
  166.  
  167. } else
  168. {
  169. stream.currentOffset += k * 3;
  170. }
  171. } else
  172. if(j == 2)
  173. name = stream.readString();
  174. else
  175. if(j == 3)
  176. description = stream.readBytes();
  177. else
  178. if(j == 5)
  179. {
  180. int l = stream.readUnsignedByte();
  181. if(l > 0)
  182. if(anIntArray773 == null || lowMem)
  183. {
  184. anIntArray776 = null;
  185. anIntArray773 = new int[l];
  186. for(int l1 = 0; l1 < l; l1++)
  187. anIntArray773[l1] = stream.readUnsignedWord();
  188.  
  189. } else
  190. {
  191. stream.currentOffset += l * 2;
  192. }
  193. } else
  194. if(j == 14)
  195. anInt744 = stream.readUnsignedByte();
  196. else
  197. if(j == 15)
  198. anInt761 = stream.readUnsignedByte();
  199. else
  200. if(j == 17)
  201. aBoolean767 = false;
  202. else
  203. if(j == 18)
  204. aBoolean757 = false;
  205. else
  206. if(j == 19)
  207. {
  208. i = stream.readUnsignedByte();
  209. if(i == 1)
  210. hasActions = true;
  211. } else
  212. if(j == 21)
  213. aBoolean762 = true;
  214. else
  215. if(j == 22)
  216. aBoolean769 = true;
  217. else
  218. if(j == 23)
  219. aBoolean764 = true;
  220. else
  221. if(j == 24)
  222. {
  223. anInt781 = stream.readUnsignedWord();
  224. if(anInt781 == 65535)
  225. anInt781 = -1;
  226. } else
  227. if(j == 28)
  228. anInt775 = stream.readUnsignedByte();
  229. else
  230. if(j == 29)
  231. aByte737 = stream.readSignedByte();
  232. else
  233. if(j == 39)
  234. aByte742 = stream.readSignedByte();
  235. else
  236. if(j >= 30 && j < 39)
  237. {
  238. if(actions == null)
  239. actions = new String[5];
  240. actions[j - 30] = stream.readString();
  241. if(actions[j - 30].equalsIgnoreCase("hidden"))
  242. actions[j - 30] = null;
  243. } else
  244. if(j == 40)
  245. {
  246. int i1 = stream.readUnsignedByte();
  247. modifiedModelColors = new int[i1];
  248. originalModelColors = new int[i1];
  249. for(int i2 = 0; i2 < i1; i2++)
  250. {
  251. modifiedModelColors[i2] = stream.readUnsignedWord();
  252. originalModelColors[i2] = stream.readUnsignedWord();
  253. }
  254.  
  255. } else
  256. if(j == 60)
  257. anInt746 = stream.readUnsignedWord();
  258. else
  259. if(j == 62)
  260. aBoolean751 = true;
  261. else
  262. if(j == 64)
  263. aBoolean779 = false;
  264. else
  265. if(j == 65)
  266. anInt748 = stream.readUnsignedWord();
  267. else
  268. if(j == 66)
  269. anInt772 = stream.readUnsignedWord();
  270. else
  271. if(j == 67)
  272. anInt740 = stream.readUnsignedWord();
  273. else
  274. if(j == 68)
  275. anInt758 = stream.readUnsignedWord();
  276. else
  277. if(j == 69)
  278. anInt768 = stream.readUnsignedByte();
  279. else
  280. if(j == 70)
  281. anInt738 = stream.readSignedWord();
  282. else
  283. if(j == 71)
  284. anInt745 = stream.readSignedWord();
  285. else
  286. if(j == 72)
  287. anInt783 = stream.readSignedWord();
  288. else
  289. if(j == 73)
  290. aBoolean736 = true;
  291. else
  292. if(j == 74)
  293. {
  294. aBoolean766 = true;
  295. } else
  296. {
  297. if(j != 75)
  298. continue;
  299. anInt760 = stream.readUnsignedByte();
  300. }
  301. continue label0;
  302. } while(j != 77);
  303. anInt774 = stream.readUnsignedWord();
  304. if(anInt774 == 65535)
  305. anInt774 = -1;
  306. anInt749 = stream.readUnsignedWord();
  307. if(anInt749 == 65535)
  308. anInt749 = -1;
  309. int j1 = stream.readUnsignedByte();
  310. childrenIDs = new int[j1 + 1];
  311. for(int j2 = 0; j2 <= j1; j2++)
  312. {
  313. childrenIDs[j2] = stream.readUnsignedWord();
  314. if(childrenIDs[j2] == 65535)
  315. childrenIDs[j2] = -1;
  316. }
  317.  
  318. } while(true);
  319. if(i == -1)
  320. {
  321. hasActions = anIntArray773 != null && (anIntArray776 == null || anIntArray776[0] == 10);
  322. if(actions != null)
  323. hasActions = true;
  324. }
  325. if(aBoolean766)
  326. {
  327. aBoolean767 = false;
  328. aBoolean757 = false;
  329. }
  330. if(anInt760 == -1)
  331. anInt760 = aBoolean767 ? 1 : 0;
  332. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement