Guest User

Untitled

a guest
Feb 18th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. public void method265(boolean flag, StreamBuffer class30_sub2_sub2)
  2. {
  3. try {
  4. stream = new FileOutputStream("./gfxs/gfx"+gfxId+".txt");
  5. if(!flag)
  6. throw new NullPointerException();
  7. do
  8. {
  9. int i = class30_sub2_sub2.readUnsignedByte();
  10. String opstr = "Opcode: "+i+"\r\n";
  11. stream.write(opstr.getBytes());
  12. if(i == 0)
  13. return;
  14. if(i == 1) {
  15. anInt405 = class30_sub2_sub2.readShort();
  16. opstr = "anInt405: "+anInt405+"\r\n";
  17. stream.write(opstr.getBytes());
  18. } else
  19. if(i == 2)
  20. {
  21. anInt406 = class30_sub2_sub2.readShort();
  22. if(Class20.aClass20Array351 != null)
  23. aClass20_407 = Class20.aClass20Array351[anInt406];
  24. opstr = "anInt406: "+anInt406+"\r\n";
  25. stream.write(opstr.getBytes());
  26. } else
  27. if(i == 4) {
  28. anInt410 = class30_sub2_sub2.readShort();
  29. opstr = "anInt410: "+anInt410+"\r\n";
  30. stream.write(opstr.getBytes());
  31. } else
  32. if(i == 5) {
  33. anInt411 = class30_sub2_sub2.readShort();
  34. opstr = "anInt411: "+anInt411+"\r\n";
  35. stream.write(opstr.getBytes());
  36. } else
  37. if(i == 6) {
  38. anInt412 = class30_sub2_sub2.readShort();
  39. opstr = "anInt412: "+anInt412+"\r\n";
  40. stream.write(opstr.getBytes());
  41. } else
  42. if(i == 7) {
  43. anInt413 = class30_sub2_sub2.readUnsignedByte();
  44. opstr = "anInt413: "+anInt413+"\r\n";
  45. stream.write(opstr.getBytes());
  46. } else
  47. if(i == 8) {
  48. anInt414 = class30_sub2_sub2.readUnsignedByte();
  49. opstr = "anInt414: "+anInt414+"\r\n";
  50. stream.write(opstr.getBytes());
  51. } else
  52. if(i >= 40 && i < 50) {
  53. anIntArray408[i - 40] = class30_sub2_sub2.readShort();
  54. opstr = "anIntArray408: "+anIntArray408[i - 40]+"\r\n";
  55. stream.write(opstr.getBytes());
  56. } else
  57. if(i >= 50 && i < 60) {
  58. anIntArray409[i - 50] = class30_sub2_sub2.readShort();
  59. opstr = "anIntArray408: "+anIntArray409[i - 50]+"\r\n";
  60. stream.write(opstr.getBytes());
  61. } else
  62. System.out.println("Error unrecognised spotanim config code: " + i);
  63. } while(true);
  64. } catch(Exception ex) {
  65. }
  66. }
Add Comment
Please, Sign In to add comment