Advertisement
Guest User

Untitled

a guest
Feb 16th, 2021
1,510
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.57 KB | None | 0 0
  1. # Persona 5 4K UI by rexis
  2. p5_4kUI: &p5_4kUI
  3. - [ be32, 0x5748f4, 0x38800060 ] # font
  4. - [ be32, 0x5748f8, 0x38a00060 ]
  5. - [ be32, 0x56ead4, 0x38600020 ]
  6. - [ be32, 0x56ead8, 0x4e800020 ]
  7. - [ be32, 0x576840, 0x3bc00020 ]
  8. - [ be32, 0x56e6e8, 0x38800020 ]
  9. - [ bef32,0x576218, 0.16666666 ]
  10.  
  11. - [ be32, 0x1cffb0, 0x48b45007 ] # bustups A
  12. - [ be32, 0x1d027C, 0x48b45007 ]
  13. - [ be32, 0x1d039C, 0x48b45007 ]
  14. - [ be32, 0x1cffd4, 0x48b45007 ]
  15. - [ be32, 0x1d02a0, 0x48b45007 ]
  16. - [ be32, 0x1d03c0, 0x48b45007 ]
  17. - [ be32, 0x1db940, 0x48b45007 ] # bustups B
  18. - [ be32, 0x1db544, 0x48b45007 ]
  19. - [ be32, 0x1db684, 0x48b45007 ]
  20. - [ be32, 0x1db978, 0x48b45007 ]
  21. - [ be32, 0x1db568, 0x48b45007 ]
  22. - [ be32, 0x1db6a8, 0x48b45007 ]
  23. - [ be32, 0x5b90f0, 0x48b45007 ] # cutins
  24. - [ be32, 0x5b9100, 0x48b45007 ]
  25. - [ be32, 0x5b9598, 0x48b45007 ]
  26. - [ be32, 0x5b9634, 0x48b45007 ]
  27.  
  28. - [ be32, 0x1c4958, 0x481c458a ] # tex size
  29. - [ be32, 0x1c4a08, 0x481c45f2 ]
  30. - [ be32, 0x1c45bc, 0x80630038 ]
  31. - [ be32, 0x1c4624, 0x8063003c ]
  32. - [ be32, 0x43077c, 0x80630038 ]
  33. - [ be32, 0x430814, 0x8063003c ]
  34.  
  35. - [ be32, 0x430978, 0x80640028 ] # common
  36. - [ be32, 0x43097c, 0x80a4003c ]
  37. - [ be32, 0x430a10, 0x48b44f03 ]
  38. - [ be32, 0x430a24, 0x60000000 ]
  39. - [ be32, 0x430d90, 0x80630038 ] # common 2
  40. - [ be32, 0x430e10, 0x8084003c ]
  41. - [ be32, 0x0ce18c, 0x48b45007 ] # minimap
  42. - [ be32, 0x0ce1b0, 0x48b45007 ]
  43. - [ be32, 0x3ebd14, 0x48b45007 ]
  44. - [ be32, 0x3ebd38, 0x48b45007 ]
  45. - [ be32, 0x4e67f0, 0x48b45007 ] # hero
  46. - [ be32, 0x4e6810, 0x48b45007 ]
  47. - [ be32, 0x245e54, 0x48b45007 ] # poem
  48. - [ be32, 0x245e78, 0x48b45007 ]
  49. - [ be32, 0x240a14, 0x48b45007 ] # fusion unlocked
  50. - [ be32, 0x240a3c, 0x48b45007 ]
  51. - [ be32, 0x0da694, 0x48b45007 ] # mission title
  52. - [ be32, 0x0da6c0, 0x48b45007 ]
  53. - [ be32, 0x11bba0, 0x48b45007 ] # shop title
  54. - [ be32, 0x11bbc4, 0x48b45007 ]
  55. - [ be32, 0x0673b0, 0x48b45007 ] # palace alert lvl
  56. - [ be32, 0x0673d0, 0x48b45007 ]
  57. - [ be32, 0x3a753c, 0x48b45007 ] # place pictures
  58. - [ be32, 0x3a7570, 0x48b45007 ]
  59. - [ be32, 0x141644, 0x48b45007 ] # clinic bg
  60. - [ be32, 0x141674, 0x48b45007 ]
  61. - [ be32, 0x1416ac, 0x48b45007 ]
  62. - [ be32, 0x1416dc, 0x48b45007 ]
  63. - [ be32, 0x135834, 0x48b45026 ]
  64. - [ be32, 0x42fc70, 0x48b45047 ] # menu bg, lessons, activites, lvlup...
  65. - [ be32, 0x42fc94, 0x48b45047 ]
  66. - [ be32, 0x42fe64, 0x48b45047 ]
  67. - [ be32, 0x42fe90, 0x48b45047 ]
  68. - [ be32, 0x3f6284, 0x48b44f4e ] # the 'Q'
  69. - [ bef32,0x43226c,-0.16666666 ] # persona mask
  70. - [ bef32,0x432270, 0.16666666 ]
  71. - [ bef32,0x431a44, 0.16666666 ] # confidant rotating thing
  72. - [ bef32,0x1d29c0, 252.000000 ] # inventory icons
  73. - [ bef32,0x1d29c8, 90.0000000 ]
  74. - [ bef32,0x1d29cc, 251.000000 ]
  75. - [ bef32,0x1d29d0, 89.0000000 ]
  76. - [ bef32,0x4c1400, 3.00000000 ] # ? menu red bg
  77. - [ bef32,0x4c4d9c, 3.00000000 ]
  78. - [ be32, 0x8143cc, 0x60000000 ] # heart
  79. - [ be32, 0x8143dc, 0x60000000 ]
  80. - [ be32, 0x288310, 0x48b44f3f ] # hb revert tex width
  81. - [ be32, 0x288320, 0x48b44f47 ] # hb revert tex height
  82. - [ be32, 0x2883c8, 0x48b44fa3 ] # scale to 1/3 patch
  83. - [ be32, 0x28c160, 0x48b44fb2 ] # hp bar patch
  84. - [ be32, 0x28c320, 0x48b44fda ] # sp bar patch
  85.  
  86. # common stuff
  87. - [ be32, 0xb45004, 0x38a00003 ] # li r5,0x3
  88. - [ be32, 0xb45008, 0x7c632bd2 ] # divd r3,r3,r5
  89. - [ be32, 0xb4500c, 0x4e800020 ] # blr
  90. - [ be32, 0xb45024, 0xf8610018 ] # std r3,0x18(r1)
  91. - [ be32, 0xb45028, 0x63c30000 ] # ori r3,r30,0x0
  92. - [ be32, 0xb4502c, 0x48b44f3f ] # bla 0xb44f3c
  93. - [ be32, 0xb45030, 0xffa00890 ] # fmr f29,f1
  94. - [ be32, 0xb45034, 0x63c30000 ] # ori r3,r30,0x0
  95. - [ be32, 0xb45038, 0x48b44f47 ] # bla 0xb44f44
  96. - [ be32, 0xb4503c, 0xff800890 ] # fmr f28,f1
  97. - [ be32, 0xb45040, 0x4813583a ] # ba 0x135838
  98.  
  99. - [ be32, 0xb45044, 0xa0a10165 ] # lhz r5,0x165(r1)
  100. - [ be32, 0xb45048, 0x2c0540c0 ] # cmpwi r5,0x40c0
  101. - [ be32, 0xb4504c, 0x41820050 ] # beq 0xb4509c
  102. - [ be32, 0xb45050, 0x2c054255 ] # cmpwi r5,0x4255
  103. - [ be32, 0xb45054, 0x41820048 ] # beq 0xb4509c
  104. - [ be32, 0xb45058, 0x2c054436 ] # cmpwi r5,0x4436
  105. - [ be32, 0xb4505c, 0x41820040 ] # beq 0xb4509c
  106. - [ be32, 0xb45060, 0x2c054d12 ] # cmpwi r5,0x4d12
  107. - [ be32, 0xb45064, 0x41820038 ] # beq 0xb4509c
  108. - [ be32, 0xb45068, 0x2c054d15 ] # cmpwi r5,0x4d15
  109. - [ be32, 0xb4506c, 0x41820030 ] # beq 0xb4509c
  110. - [ be32, 0xb45070, 0x2c054d2c ] # cmpwi r5,0x4d2c
  111. - [ be32, 0xb45074, 0x41820028 ] # beq 0xb4509c
  112. - [ be32, 0xb45078, 0x2c05621b ] # cmpwi r5,0x621b
  113. - [ be32, 0xb4507c, 0x41820020 ] # beq 0xb4509c
  114. - [ be32, 0xb45080, 0xa0a100e5 ] # lhz r5,0xe5(r1)
  115. - [ be32, 0xb45084, 0x2c054c4d ] # cmpwi r5,0x4c4d
  116. - [ be32, 0xb45088, 0x41820014 ] # beq 0xb4509c
  117. - [ be32, 0xb4508c, 0xa0a10235 ] # lhz r5,0x235(r1)
  118. - [ be32, 0xb45090, 0x2c054c4d ] # cmpwi r5,0x4c4d
  119. - [ be32, 0xb45094, 0x41820008 ] # beq 0xb4509c
  120. - [ be32, 0xb45098, 0x48b45006 ] # ba 0xb45004
  121. - [ be32, 0xb4509c, 0x4e800020 ] # blr
  122.  
  123. - [ be32, 0xb44f00, 0xc9a10018 ] # lfd f13,0x18(r1)
  124. - [ be32, 0xb44f04, 0x81440038 ] # lwz r10,0x38(r4)
  125. - [ be32, 0xb44f08, 0xf9410018 ] # std r10,0x18(r1)
  126. - [ be32, 0xb44f0c, 0xc9010018 ] # lfd f8,0x18(r1)
  127. - [ be32, 0xb44f10, 0xfd00469c ] # fcfid f8,f8
  128. - [ be32, 0xb44f14, 0x8144002c ] # lwz r10,0x2c(r4)
  129. - [ be32, 0xb44f18, 0xf9410018 ] # std r10,0x18(r1)
  130. - [ be32, 0xb44f1c, 0xc8e10018 ] # lfd f7,0x18(r1)
  131. - [ be32, 0xb44f20, 0xfce03e9c ] # fcfid f7,f7
  132. - [ be32, 0xb44f24, 0xfd40569c ] # fcfid f10,f10
  133. - [ be32, 0xb44f28, 0x4e800020 ] # blr
  134. - [ be32, 0xb44f3c, 0xf821ff81 ] # stdu r1,-0x80(r1)
  135. - [ be32, 0xb44f40, 0x481c495e ] # ba 0x1c495c
  136. - [ be32, 0xb44f44, 0xf821ff81 ] # stdu r1,-0x80(r1)
  137. - [ be32, 0xb44f48, 0x481c4a0e ] # ba 0x1c4a0c
  138. - [ be32, 0xb44f4c, 0xfda00890 ] # fmr f13,f1
  139. - [ be32, 0xb44f50, 0x807d0010 ] # lwz r3,0x10(r29)
  140. - [ be32, 0xb44f54, 0x48b44f3f ] # bla 0xb44f3c
  141. - [ be32, 0xb44f58, 0xff800890 ] # fmr f28,f1
  142. - [ be32, 0xb44f5c, 0x807d0010 ] # lwz r3,0x10(r29)
  143. - [ be32, 0xb44f60, 0x48b44f47 ] # bla 0xb44f44
  144. - [ be32, 0xb44f64, 0xc37c0010 ] # lfs f27,0x10(r28)
  145. - [ be32, 0xb44f68, 0xef7b0072 ] # fmuls f27,f27,f1
  146. - [ be32, 0xb44f6c, 0x807e0004 ] # lwz r3,0x4(r30)
  147. - [ be32, 0xb44f70, 0xa0630008 ] # lhz r3,0x8(r3)
  148. - [ be32, 0xb44f74, 0xf8610018 ] # std r3,0x18(r1)
  149. - [ be32, 0xb44f78, 0xc8610018 ] # lfd f3,0x18(r1)
  150. - [ be32, 0xb44f7c, 0xfc601e9c ] # fcfid f3,f3
  151. - [ be32, 0xb44f80, 0xec7a1824 ] # fdivs f3,f26,f3
  152. - [ be32, 0xb44f84, 0xec4dd82a ] # fadds f2,f13,f27
  153. - [ be32, 0xb44f88, 0xfc206890 ] # fmr f1,f13
  154. - [ be32, 0xb44f8c, 0x483f6292 ] # ba 0x3f6290
  155.  
  156. # healthbars
  157. - [ be32, 0xb44fa0, 0x3c803eaa ] # lis r4,0x3eaa
  158. - [ be32, 0xb44fa4, 0x90870090 ] # stw r4,0x90(r7)
  159. - [ be32, 0xb44fa8, 0x90870094 ] # stw r4,0x94(r7)
  160. - [ be32, 0xb44fac, 0x4e800020 ] # blr
  161. - [ be32, 0xb44fb0, 0x3c60c30a ] # lis r3,-0x3e90
  162. - [ be32, 0xb44fb4, 0x9061008c ] # stw r3,0x8c(r1)
  163. - [ be32, 0xb44fb8, 0x3c60c170 ] # lis r3,-0x3cf6
  164. - [ be32, 0xb44fbc, 0x90610090 ] # stw r3,0x90(r1)
  165. - [ be32, 0xb44fc0, 0x63430000 ] # ori r3,r26,0x0
  166. - [ be32, 0xb44fc4, 0x62240000 ] # ori r4,r17,0x0
  167. - [ be32, 0xb44fc8, 0x62a50000 ] # ori r5,r21,0x0
  168. - [ be32, 0xb44fcc, 0x48288003 ] # bla 0x288000
  169. - [ be32, 0xb44fd0, 0x3c600029 ] # lis r3,0x29
  170. - [ be32, 0xb44fd4, 0x4828c166 ] # ba 0x28c164
  171. - [ be32, 0xb44fd8, 0x3c60c2ba ] # lis r3,-0x3d46
  172. - [ be32, 0xb44fdc, 0x9061008c ] # stw r3,0x8c(r1)
  173. - [ be32, 0xb44fe0, 0x63430000 ] # ori r3,r26,0x0
  174. - [ be32, 0xb44fe4, 0x62240000 ] # ori r4,r17,0x0
  175. - [ be32, 0xb44fe8, 0x62a50000 ] # ori r5,r21,0x0
  176. - [ be32, 0xb44fec, 0x48288003 ] # bla 0x288000
  177. - [ be32, 0xb44ff0, 0xe8610130 ] # ld r3,0x130(r1)
  178. - [ be32, 0xb44ff4, 0x4828c326 ] # ba 0x28c324
  179.  
  180. # disable uglify shader
  181. - [ be32, 0xfedde2, 0x9e001700 ]
  182. - [ be32, 0xfedde6, 0xc801001d ]
  183. - [ be32, 0xfeddea, 0x00000000 ]
  184. - [ be32, 0xfeddee, 0x00000000 ]
  185. - [ be32, 0xfeddf2, 0x1e810100 ]
  186. - [ be32, 0xfeddf6, 0xc800001d ]
  187. - [ be32, 0xfeddfa, 0x00000000 ]
  188. - [ be32, 0xfeddfe, 0x00000000 ]
  189.  
  190. # Disable character outlines by rexis
  191. p5_DisableOutlines: &p5_DisableOutlines
  192. - [ be32, 0xfe5460, 0x00010000 ]
  193.  
  194. # p5_ModSupport by TGE (File replacement through mod.cpk)
  195. p5_ModSupport: &p5_ModSupport
  196. # make %s/hdd.cpk -> %s%s/mod.cpk
  197. - [ be32, 0x00B4D638, 0x25732573 ]
  198. - [ be32, 0x00B4D63C, 0x2F6D6F64 ]
  199. - [ be32, 0x00B4D640, 0x2E63706B ]
  200. # make mod.cpk file path
  201. - [ be32, 0x00114CA4, 0x3C6000B5 ] # lis r3, cpkPathString@ha
  202. - [ be32, 0x00114CA8, 0x33E3D638 ] # addic r31, r3, cpkPathString@l
  203. - [ be32, 0x00114CAC, 0x48968BEB ] # bla getInstallPath
  204. - [ be32, 0x00114CB0, 0x60000000 ] # nop
  205. - [ be32, 0x00114CB4, 0x7C7E1B78 ] # mr r30, r3
  206. - [ be32, 0x00114CB8, 0x48968BF7 ] # bla getInstallPath2
  207. - [ be32, 0x00114CBC, 0x60000000 ] # nop
  208. - [ be32, 0x00114CC0, 0x33A10070 ] # addic r29, r1, 0x70
  209. - [ be32, 0x00114CC4, 0x7C661B78 ] # mr r6, r3
  210. - [ be32, 0x00114CC8, 0x7FA3EB78 ] # mr r3, r29
  211. - [ be32, 0x00114CCC, 0x7FE4FB78 ] # mr r4, r31
  212. - [ be32, 0x00114CD0, 0x7FC5F378 ] # mr r5, r30
  213. - [ be32, 0x00114CD4, 0x48AD567F ] # bla sprintf
  214. - [ be32, 0x00114CD8, 0x60000000 ] # nop
  215. - [ be32, 0x00114CDC, 0x48B44A9E ] # ba branchOffset
  216. - [ be32, 0x00114CE0, 0x60000000 ] # nop
  217. # trampoline
  218. - [ be32, 0x00B44A9C, 0x7FA3EB78 ] # mr r3, r29
  219. - [ be32, 0x00B44AA0, 0x48114B77 ] # bla criFsBindCpk
  220. - [ be32, 0x00B44AA4, 0x60000000 ] # nop
  221. - [ be32, 0x00B44AA8, 0x3880000A ] # li r4, 0xA
  222. - [ be32, 0x00B44AAC, 0x48AB8ED7 ] # bla criFsBindPatch
  223. - [ be32, 0x00B44AB0, 0x60000000 ] # nop
  224. - [ be32, 0x00B44AB4, 0x48114CE6 ] # ba 0x114CA4 + 0x40
  225. - [ be32, 0x00B44AB8, 0x60000000 ] # nop
  226.  
  227. # p5_FileAccessLog by TGE (File access log)
  228. p5_FileAccessLog: &p5_FileAccessLog
  229. # branch to trampoline
  230. - [ be32, 0x00AC0A78, 0x48B44ABF ] # bla 0xB44ABC
  231. - [ be32, 0x00AC0A7C, 0x60000000 ] # nop
  232. # trampoline
  233. # prologue
  234. - [ be32, 0x00B44ABC, 0xF821FF41 ] # stdu r1, -STACK_SIZE(r1)
  235. - [ be32, 0x00B44AC0, 0x7C0802A6 ] # mflr r0
  236. - [ be32, 0x00B44AC4, 0xF80100D0 ] # std r0, STACK_SIZE + 0x10(r1)
  237. # save volatile regs
  238. - [ be32, 0x00B44AC8, 0xF86100B8 ] # std r3, STACK_SIZE - 0x08(r1)
  239. - [ be32, 0x00B44ACC, 0xF88100B0 ] # std r4, STACK_SIZE - 0x10(r1)
  240. - [ be32, 0x00B44AD0, 0xF8A100A8 ] # std r5, STACK_SIZE - 0x18(r1)
  241. - [ be32, 0x00B44AD4, 0xF8C100A0 ] # std r6, STACK_SIZE - 0x20(r1)
  242. - [ be32, 0x00B44AD8, 0xF8E10098 ] # std r7, STACK_SIZE - 0x28(r1)
  243. - [ be32, 0x00B44ADC, 0xF9010090 ] # std r8, STACK_SIZE - 0x30(r1)
  244. - [ be32, 0x00B44AE0, 0xF9210088 ] # std r9, STACK_SIZE - 0x38(r1)
  245. - [ be32, 0x00B44AE4, 0xF9410080 ] # std r10, STACK_SIZE - 0x40(r1)
  246. - [ be32, 0x00B44AE8, 0xF9610078 ] # std r11, STACK_SIZE - 0x48(r1)
  247. - [ be32, 0x00B44AEC, 0xF9810070 ] # std r12, STACK_SIZE - 0x50(r1)
  248. # print file name
  249. - [ be32, 0x00B44AF0, 0x80630004 ] # lwz r3, 0x04(r3)
  250. - [ be32, 0x00B44AF4, 0x7C6307B4 ] # extsw r3, r3
  251. - [ be32, 0x00B44AF8, 0x48AD546F ] # bla PTR_PRINTF
  252. - [ be32, 0x00B44AFC, 0x60000000 ] # nop
  253. # print newline
  254. - [ be32, 0x00B44B00, 0x3C6000B9 ] # lis r3, PTR_NEWLINECHAR@ha
  255. - [ be32, 0x00B44B04, 0x30631820 ] # addic r3, r3, PTR_NEWLINECHAR@l
  256. - [ be32, 0x00B44B08, 0x48AD546F ] # bla PTR_PRINTF
  257. - [ be32, 0x00B44B0C, 0x60000000 ] # nop
  258. # restore volatile regs
  259. - [ be32, 0x00B44B10, 0xE86100B8 ] # ld r3, STACK_SIZE - 0x08(r1)
  260. - [ be32, 0x00B44B14, 0xE88100B0 ] # ld r4, STACK_SIZE - 0x10(r1)
  261. - [ be32, 0x00B44B18, 0xE8A100A8 ] # ld r5, STACK_SIZE - 0x18(r1)
  262. - [ be32, 0x00B44B1C, 0xE8C100A0 ] # ld r6, STACK_SIZE - 0x20(r1)
  263. - [ be32, 0x00B44B20, 0xE8E10098 ] # ld r7, STACK_SIZE - 0x28(r1)
  264. - [ be32, 0x00B44B24, 0xE9010090 ] # ld r8, STACK_SIZE - 0x30(r1)
  265. - [ be32, 0x00B44B28, 0xE9210088 ] # ld r9, STACK_SIZE - 0x38(r1)
  266. - [ be32, 0x00B44B2C, 0xE9410080 ] # ld r10, STACK_SIZE - 0x40(r1)
  267. - [ be32, 0x00B44B30, 0xE9610078 ] # ld r11, STACK_SIZE - 0x48(r1)
  268. - [ be32, 0x00B44B34, 0xE9810070 ] # ld r12, STACK_SIZE - 0x50(r1)
  269. # destroy stack frame
  270. - [ be32, 0x00B44B38, 0xE80100D0 ] # ld r0, STACK_SIZE + 0x10(r1)
  271. - [ be32, 0x00B44B3C, 0x7C0803A6 ] # mtlr r0
  272. - [ be32, 0x00B44B40, 0x382100C0 ] # addi r1, r1, STACK_SIZE
  273. # return
  274. - [ be32, 0x00B44B44, 0xFB2100F8 ] # std r25, 0xF8(r1)
  275. - [ be32, 0x00B44B48, 0xFAA100D8 ] # std r21, 0xD8(r1)
  276. - [ be32, 0x00B44B4C, 0x4E800020 ] # blr
  277.  
  278. # p5_IntroSkip by TGE (Skip intro logos)
  279. p5_IntroSkip: &p5_IntroSkip
  280. - [ be32, 0x0055AC8C, 0x60000000 ]
  281.  
  282. # p5_60FPS by TGE (60 fps)
  283. p5_60FPS: &p5_60FPS
  284. - [ be32, 0x00010268, 0x9061009C ] # set update rate to 60 -> r3, 0xE0+var_44(r1)
  285. - [ be32, 0x008FC864, 0x60000000 ] # nop cellGcmSetSecondVFrequency
  286. - [ bef32, 0x00012484, 0.01666667 ]
  287. - [ bef32, 0x00045678, 0.01666667 ]
  288. - [ bef32, 0x000616F0, 0.01666667 ]
  289. - [ bef32, 0x00073F20, 0.01666667 ]
  290. # - [ bef32, 0x000753A0, 0.01666667 ] Doubles camera speed
  291. - [ bef32, 0x00077E54, 0.01666667 ]
  292. - [ bef32, 0x00078A70, 0.01666667 ]
  293. - [ bef32, 0x0007A238, 0.01666667 ]
  294. - [ bef32, 0x00081864, 0.01666667 ]
  295. - [ bef32, 0x000885C8, 0.01666667 ]
  296. - [ bef32, 0x0008C550, 0.01666667 ]
  297. - [ bef32, 0x0008D6D0, 0.01666667 ]
  298. - [ bef32, 0x000D058C, 0.01666667 ]
  299. - [ bef32, 0x000D0B4C, 0.01666667 ]
  300. - [ bef32, 0x000E4754, 0.01666667 ]
  301. - [ bef32, 0x000E50F0, 0.01666667 ]
  302. - [ bef32, 0x000E8190, 0.01666667 ]
  303. - [ bef32, 0x000F8B78, 0.01666667 ]
  304. - [ bef32, 0x00101CE8, 0.01666667 ]
  305. - [ bef32, 0x001E7344, 0.01666667 ]
  306. - [ bef32, 0x001EB0D4, 0.01666667 ]
  307. - [ bef32, 0x001EB328, 0.01666667 ]
  308. - [ bef32, 0x001EB814, 0.01666667 ]
  309. - [ bef32, 0x001EB940, 0.01666667 ]
  310. - [ bef32, 0x001EBA04, 0.01666667 ]
  311. - [ bef32, 0x001EBBA0, 0.01666667 ]
  312. - [ bef32, 0x001EBCD0, 0.01666667 ]
  313. - [ bef32, 0x001ECCA0, 0.01666667 ]
  314. - [ bef32, 0x00234C64, 0.01666667 ]
  315. - [ bef32, 0x0023F4BC, 0.01666667 ]
  316. - [ bef32, 0x002400BC, 0.01666667 ]
  317. - [ bef32, 0x00240BB0, 0.01666667 ]
  318. - [ bef32, 0x0029231C, 0.01666667 ]
  319. - [ bef32, 0x00294A70, 0.01666667 ]
  320. - [ bef32, 0x002952F8, 0.01666667 ]
  321. #- [ bef32, 0x002B027C, 0.01666667 ] Makes it impossible to run < 60 fps
  322. - [ bef32, 0x002B0688, 0.01666667 ]
  323. - [ bef32, 0x002B6154, 0.01666667 ]
  324. - [ bef32, 0x002B71F8, 0.01666667 ]
  325. - [ bef32, 0x002B82C8, 0.01666667 ]
  326. - [ bef32, 0x002B98F8, 0.01666667 ]
  327. - [ bef32, 0x002B9F8C, 0.01666667 ]
  328. - [ bef32, 0x002BA614, 0.01666667 ]
  329. - [ bef32, 0x002BC84C, 0.01666667 ]
  330. - [ bef32, 0x002BCD2C, 0.01666667 ]
  331. - [ bef32, 0x002C550C, 0.01666667 ]
  332. - [ bef32, 0x002D1328, 0.01666667 ]
  333. #- [ bef32, 0x002D230C, 0.01666667 ] Doubles movement speed
  334. - [ bef32, 0x002D2DDC, 0.01666667 ]
  335. - [ bef32, 0x002D8A10, 0.01666667 ]
  336. - [ bef32, 0x002D8A18, 0.01666667 ]
  337. - [ bef32, 0x002DA46C, 0.01666667 ]
  338. - [ bef32, 0x002FBB00, 0.01666667 ]
  339. - [ bef32, 0x0030E258, 0.01666667 ]
  340. - [ bef32, 0x003181D4, 0.01666667 ]
  341. - [ bef32, 0x0031CE24, 0.01666667 ]
  342. - [ bef32, 0x0031DBE0, 0.01666667 ]
  343. - [ bef32, 0x0033DBD0, 0.01666667 ]
  344. - [ bef32, 0x00358664, 0.01666667 ]
  345. - [ bef32, 0x00359020, 0.01666667 ]
  346. - [ bef32, 0x0035AD10, 0.01666667 ]
  347. - [ bef32, 0x00364A98, 0.01666667 ]
  348. - [ bef32, 0x0037429C, 0.01666667 ]
  349. - [ bef32, 0x00376E7C, 0.01666667 ]
  350. - [ bef32, 0x00379B08, 0.01666667 ]
  351. - [ bef32, 0x0037AAAC, 0.01666667 ]
  352. - [ bef32, 0x0037CF54, 0.01666667 ]
  353. - [ bef32, 0x0037DB7C, 0.01666667 ]
  354. - [ bef32, 0x003803F4, 0.01666667 ]
  355. - [ bef32, 0x00387A80, 0.01666667 ]
  356. - [ bef32, 0x00388684, 0.01666667 ]
  357. - [ bef32, 0x003ACBC0, 0.01666667 ]
  358. - [ bef32, 0x003BDDD0, 0.01666667 ]
  359. - [ bef32, 0x003E944C, 0.01666667 ]
  360. - [ bef32, 0x003F35EC, 0.01666667 ]
  361. - [ bef32, 0x003F6FF4, 0.01666667 ]
  362. - [ bef32, 0x0058CE18, 0.01666667 ]
  363. - [ bef32, 0x0058DE64, 0.01666667 ]
  364. - [ bef32, 0x0058E82C, 0.01666667 ]
  365. - [ bef32, 0x0058E958, 0.01666667 ]
  366. - [ bef32, 0x0058F47C, 0.01666667 ]
  367. - [ bef32, 0x0058FA00, 0.01666667 ]
  368. - [ bef32, 0x0058FAB4, 0.01666667 ]
  369. - [ bef32, 0x0058FBE4, 0.01666667 ]
  370. - [ bef32, 0x0058FD2C, 0.01666667 ]
  371. - [ bef32, 0x0058FE6C, 0.01666667 ]
  372. - [ bef32, 0x00590A04, 0.01666667 ]
  373. - [ bef32, 0x005B6914, 0.01666667 ]
  374. - [ bef32, 0x005F1C6C, 0.01666667 ]
  375. - [ bef32, 0x0062076C, 0.01666667 ] # battle related stuff
  376. - [ bef32, 0x007072BC, 0.01666667 ]
  377. - [ bef32, 0x00722D7C, 0.01666667 ]
  378. - [ bef32, 0x0073C840, 0.01666667 ]
  379. - [ bef32, 0x00772E50, 0.01666667 ]
  380. - [ bef32, 0x0087B338, 0.01666667 ]
  381. - [ bef32, 0x00B10110, 0.01666667 ]
  382. - [ bef32, 0x00B6AA14, 0.01666667 ]
  383. - [ bef32, 0x00B6AA38, 0.01666667 ]
  384. - [ bef32, 0x00B70B48, 0.01666667 ]
  385. - [ bef32, 0x00B70BC8, 0.01666667 ]
  386. - [ bef32, 0x00B71CF4, 0.01666667 ]
  387. - [ bef32, 0x00B72F38, 0.01666667 ]
  388. - [ bef32, 0x00CFF46C, 0.01666667 ]
  389. - [ bef32, 0x00061700, 0.1666667 ]
  390. - [ bef32, 0x00069AA4, 0.1666667 ]
  391. - [ bef32, 0x0007A1EC, 0.1666667 ]
  392. - [ bef32, 0x00081880, 0.1666667 ]
  393. - [ bef32, 0x000C8258, 0.1666667 ]
  394. - [ bef32, 0x000C991C, 0.1666667 ]
  395. - [ bef32, 0x00101CCC, 0.1666667 ]
  396. - [ bef32, 0x001E2C44, 0.1666667 ]
  397. - [ bef32, 0x001E61E8, 0.1666667 ]
  398. - [ bef32, 0x001E7338, 0.1666667 ]
  399. - [ bef32, 0x00250C50, 0.1666667 ]
  400. - [ bef32, 0x00256B20, 0.1666667 ]
  401. - [ bef32, 0x00292100, 0.1666667 ]
  402. - [ bef32, 0x00294A60, 0.1666667 ]
  403. - [ bef32, 0x002952E4, 0.1666667 ]
  404. - [ bef32, 0x0029FD98, 0.1666667 ]
  405. - [ bef32, 0x002A1BB8, 0.1666667 ]
  406. - [ bef32, 0x002A41D0, 0.1666667 ]
  407. - [ bef32, 0x002A6124, 0.1666667 ]
  408. - [ bef32, 0x002B4FF0, 0.1666667 ]
  409. - [ bef32, 0x002B60DC, 0.1666667 ]
  410. - [ bef32, 0x002B7174, 0.1666667 ]
  411. - [ bef32, 0x002B82F4, 0.1666667 ]
  412. - [ bef32, 0x002B8E74, 0.1666667 ]
  413. - [ bef32, 0x002BA600, 0.1666667 ]
  414. - [ bef32, 0x002BAB30, 0.1666667 ]
  415. - [ bef32, 0x002BB4E0, 0.1666667 ]
  416. - [ bef32, 0x002BB808, 0.1666667 ]
  417. - [ bef32, 0x002BC368, 0.1666667 ]
  418. - [ bef32, 0x002BC844, 0.1666667 ]
  419. - [ bef32, 0x002BD414, 0.1666667 ]
  420. - [ bef32, 0x002C4F54, 0.1666667 ]
  421. - [ bef32, 0x002C4FF0, 0.1666667 ]
  422. - [ bef32, 0x002C69E4, 0.1666667 ]
  423. - [ bef32, 0x002D4378, 0.1666667 ]
  424. - [ bef32, 0x002DD968, 0.1666667 ]
  425. - [ bef32, 0x002DE538, 0.1666667 ]
  426. - [ bef32, 0x002DEA04, 0.1666667 ]
  427. - [ bef32, 0x0030D7A0, 0.1666667 ]
  428. - [ bef32, 0x0030E6BC, 0.1666667 ]
  429. - [ bef32, 0x003181B8, 0.1666667 ]
  430. - [ bef32, 0x0031AFE0, 0.1666667 ]
  431. - [ bef32, 0x0031CE38, 0.1666667 ]
  432. - [ bef32, 0x0031DBF0, 0.1666667 ]
  433. - [ bef32, 0x0031EC74, 0.1666667 ]
  434. - [ bef32, 0x00322FB4, 0.1666667 ]
  435. - [ bef32, 0x00356560, 0.1666667 ]
  436. - [ bef32, 0x003586BC, 0.1666667 ]
  437. - [ bef32, 0x00358F90, 0.1666667 ]
  438. - [ bef32, 0x0035A380, 0.1666667 ]
  439. - [ bef32, 0x0035AA3C, 0.1666667 ]
  440. - [ bef32, 0x00364A9C, 0.1666667 ]
  441. - [ bef32, 0x003688C8, 0.1666667 ]
  442. - [ bef32, 0x00368A88, 0.1666667 ]
  443. - [ bef32, 0x00368E30, 0.1666667 ]
  444. - [ bef32, 0x00376FD0, 0.1666667 ]
  445. - [ bef32, 0x00377538, 0.1666667 ]
  446. - [ bef32, 0x00377CD8, 0.1666667 ]
  447. - [ bef32, 0x0037C2B0, 0.1666667 ]
  448. - [ bef32, 0x0037D310, 0.1666667 ]
  449. - [ bef32, 0x0037D418, 0.1666667 ]
  450. - [ bef32, 0x0037D5B4, 0.1666667 ]
  451. - [ bef32, 0x0037DD08, 0.1666667 ]
  452. - [ bef32, 0x0037DE10, 0.1666667 ]
  453. - [ bef32, 0x0037DF78, 0.1666667 ]
  454. - [ bef32, 0x00382F38, 0.1666667 ]
  455. - [ bef32, 0x003845F0, 0.1666667 ]
  456. - [ bef32, 0x00387A6C, 0.1666667 ]
  457. - [ bef32, 0x00398208, 0.1666667 ]
  458. - [ bef32, 0x00398460, 0.1666667 ]
  459. - [ bef32, 0x003999F8, 0.1666667 ]
  460. - [ bef32, 0x003A7C64, 0.1666667 ]
  461. - [ bef32, 0x003AA418, 0.1666667 ]
  462. - [ bef32, 0x003AE0E4, 0.1666667 ]
  463. - [ bef32, 0x003AE3A0, 0.1666667 ]
  464. - [ bef32, 0x003B25D8, 0.1666667 ]
  465. - [ bef32, 0x003BC448, 0.1666667 ]
  466. - [ bef32, 0x003C58C0, 0.1666667 ]
  467. - [ bef32, 0x003C67B0, 0.1666667 ]
  468. - [ bef32, 0x003C6D6C, 0.1666667 ]
  469. - [ bef32, 0x003EBC20, 0.1666667 ]
  470. - [ bef32, 0x003EE5F0, 0.1666667 ]
  471. - [ bef32, 0x003F1FE0, 0.1666667 ]
  472. - [ bef32, 0x003F6FC0, 0.1666667 ]
  473. - [ bef32, 0x004EB808, 0.1666667 ]
  474. - [ bef32, 0x0055251C, 0.1666667 ]
  475. - [ bef32, 0x0055EC48, 0.1666667 ]
  476. - [ bef32, 0x0055F4A8, 0.1666667 ]
  477. - [ bef32, 0x0057DC08, 0.1666667 ]
  478. - [ bef32, 0x0057E498, 0.1666667 ]
  479. - [ bef32, 0x005C5364, 0.1666667 ]
  480. - [ bef32, 0x00620714, 0.1666667 ]
  481. - [ bef32, 0x00635CB4, 0.1666667 ]
  482. - [ bef32, 0x00642B98, 0.1666667 ]
  483. - [ bef32, 0x00654EE8, 0.1666667 ]
  484. - [ bef32, 0x00662B04, 0.1666667 ]
  485. - [ bef32, 0x006AFF98, 0.1666667 ]
  486. - [ bef32, 0x006CAA44, 0.1666667 ]
  487. - [ bef32, 0x006E0224, 0.1666667 ]
  488. - [ bef32, 0x006E31A0, 0.1666667 ]
  489. - [ bef32, 0x006FCD3C, 0.1666667 ]
  490. - [ bef32, 0x00772E54, 0.1666667 ]
  491. - [ bef32, 0x00797508, 0.1666667 ]
  492. - [ bef32, 0x00B52E3C, 0.1666667 ]
  493. - [ bef32, 0x00B6AD00, 0.1666667 ]
  494. - [ bef32, 0x00B6B71C, 0.1666667 ]
  495. - [ bef32, 0x00B6E478, 0.1666667 ]
  496. - [ bef32, 0x00B6E880, 0.1666667 ]
  497. - [ bef32, 0x00B6E8B8, 0.1666667 ]
  498. - [ bef32, 0x00B6E8F0, 0.1666667 ]
  499. - [ bef32, 0x00B6E928, 0.1666667 ]
  500. - [ bef32, 0x00B6E960, 0.1666667 ]
  501. - [ bef32, 0x00B6E998, 0.1666667 ]
  502. - [ bef32, 0x00B6E9D0, 0.1666667 ]
  503. - [ bef32, 0x00B6EA08, 0.1666667 ]
  504. - [ bef32, 0x00B6EA40, 0.1666667 ]
  505. - [ bef32, 0x00B6EA78, 0.1666667 ]
  506. - [ bef32, 0x00B6EAB0, 0.1666667 ]
  507. - [ bef32, 0x00B6EAE8, 0.1666667 ]
  508. - [ bef32, 0x00B6EB20, 0.1666667 ]
  509. - [ bef32, 0x00B6EB58, 0.1666667 ]
  510. - [ bef32, 0x00B6EB90, 0.1666667 ]
  511. - [ bef32, 0x00B6EBC8, 0.1666667 ]
  512. - [ bef32, 0x00B6EC00, 0.1666667 ]
  513. - [ bef32, 0x00B6EC38, 0.1666667 ]
  514. - [ bef32, 0x00B6EC70, 0.1666667 ]
  515. - [ bef32, 0x00B6ECA8, 0.1666667 ]
  516. - [ bef32, 0x00B70A54, 0.1666667 ]
  517. - [ bef32, 0x00B70AF0, 0.1666667 ]
  518. - [ bef32, 0x00B70AF8, 0.1666667 ]
  519. - [ bef32, 0x00B70B00, 0.1666667 ]
  520. - [ bef32, 0x00B70B08, 0.1666667 ]
  521. - [ bef32, 0x00B70B10, 0.1666667 ]
  522. - [ bef32, 0x00B70B20, 0.1666667 ]
  523. - [ bef32, 0x00B70B78, 0.1666667 ]
  524. - [ bef32, 0x00B70B88, 0.1666667 ]
  525. - [ bef32, 0x00B70BB4, 0.1666667 ]
  526. - [ bef32, 0x00B70BC4, 0.1666667 ]
  527. - [ bef32, 0x00B70F60, 0.1666667 ]
  528. - [ bef32, 0x00B71BAC, 0.1666667 ]
  529. - [ bef32, 0x00B71BBC, 0.1666667 ]
  530. - [ bef32, 0x00B9BD30, 0.1666667 ]
  531. - [ bef32, 0x00CF96AC, 0.1666667 ]
  532. - [ bef32, 0x00CFA1E8, 0.1666667 ]
  533. - [ bef32, 0x00CFA20C, 0.1666667 ]
  534. - [ bef32, 0x00CFB210, 0.1666667 ]
  535. - [ bef32, 0x00CFB778, 0.1666667 ]
  536. - [ bef32, 0x00CFBC30, 0.1666667 ]
  537. - [ bef32, 0x00CFBCA8, 0.1666667 ]
  538. - [ bef32, 0x00CFBFD4, 0.1666667 ]
  539. - [ bef32, 0x00CFC0A8, 0.1666667 ]
  540. - [ bef32, 0x00CFF3CC, 0.1666667 ]
  541. - [ bef32, 0x00CFF3D4, 0.1666667 ]
  542. - [ bef32, 0x00CFF470, 0.1666667 ]
  543. - [ bef32, 0x00CFF478, 0.1666667 ]
  544. - [ bef32, 0x00CFF480, 0.1666667 ]
  545. - [ bef32, 0x00D06840, 0.1666667 ]
  546. - [ bef32, 0x00D06848, 0.1666667 ]
  547. - [ be32, 0x000FB71C, 0x3C603C88 ]
  548. - [ be32, 0x00109B14, 0x3C603C88 ]
  549. - [ be32, 0x0023FBDC, 0x3CA03C88 ]
  550. - [ be32, 0x00240620, 0x3CA03C88 ]
  551. - [ be32, 0x00241258, 0x3C803C88 ]
  552. - [ be32, 0x003CA4BC, 0x3C603C88 ]
  553. - [ be32, 0x0087B448, 0x3C603C88 ]
  554. - [ be32, 0x00589358, 0x60000000 ] # Fix cutscene voice cutoff
  555.  
  556. # p5_RandomizedEncounterMusic by TGE (Shuffled/randomized encounter music)
  557. p5_RandomizedEncounterMusic: &p5_RandomizedEncounterMusic
  558. # patch SoundManager__SetEquipBgm
  559. # branch to trampoline
  560. - [ be32, 0x0006CD68, 0x48B44B52 ] # ba 0x00B44B50
  561. # trampoline
  562. # Rnd() % MaxBgm
  563. - [ be32, 0x00B44B50, 0x4891DA07 ] # bla 0x0091DA04 (Rnd)
  564. - [ be32, 0x00B44B54, 0x38C0000B ] # li r6, 11 (MaxBgm)
  565. - [ be16, 0x00B44B56, 11 ] # bgm_10 -> 11
  566. - [ be32, 0x00B44B58, 0x30860001 ] # addic r4, r6, 1
  567. - [ be32, 0x00B44B5C, 0x7C832396 ] # divwu r4, r3, r4
  568. - [ be32, 0x00B44B60, 0x7CA431D6 ] # mullw r5, r4, r6
  569. - [ be32, 0x00B44B64, 0x7C852014 ] # addc r4, r5, r4
  570. - [ be32, 0x00B44B68, 0x7C641810 ] # subfc r3, r4, r3
  571. - [ be32, 0x00B44B6C, 0x7C6307B4 ] # extsw r3, r3
  572. # patch music id
  573. - [ be32, 0x00B44B70, 0x3FDE3000 ] # addis r30, r30, 0x3000 -> 0x30B49738
  574. - [ be32, 0x00B44B74, 0xB07E0000 ] # sth r3, 0(r30)
  575. # return
  576. - [ be32, 0x00B44B78, 0x2C1E0000 ] # cmpwi r30, 0
  577. - [ be32, 0x00B44B7C, 0x4806CD6E ] # ba 0x0006CD6C
  578. # patch Btl__PlayBgm
  579. # branch to trampoline
  580. - [ be32, 0x0063ACE4, 0x48B44B87 ] # bla 0x00B44B84 (trampoline)
  581. - [ be32, 0x0063ACE8, 0x4806CCBB ] # bla 0x0006CCB8 (SoundManager__GetBgmId)
  582. # trampoline
  583. # check and return if not normal battle bgm
  584. - [ be32, 0x00B44B84, 0x2C1F012C ] # cmpwi r31, 300 # normal battle
  585. - [ be32, 0x00B44B88, 0x41820008 ] # beq 8 # return if not normal battle music
  586. - [ be32, 0x00B44B8C, 0x4E800020 ] # blr
  587. # randomize sound bank
  588. - [ be32, 0x00B44B90, 0x4806CCCB ] # bla 0x0006CCC8 (SoundManager__SetEquipBgm)
  589. # return
  590. - [ be32, 0x00B44B94, 0x4863ACEA ] # ba 0x0063ACE8
  591.  
  592. # p5_DisableDLCUnlockMessages by TGE (Disable DLC unlock messages)
  593. p5_DisableDLCUnlockMessages: &p5_DisableDLCUnlockMessages
  594. - [ be32, 0x197AE8, 0x4E800020 ]
  595.  
  596. # p5_FixScriptPrintingFunctions by TGE (Fix script printing functions)
  597. p5_FixScriptPrintingFunctions: &p5_FixScriptPrintingFunctions
  598. #ScriptInterpreter_Comm_PUT_Hook
  599. - [ be32, 0x001E9D10, 0x48B44B9A ]
  600. #PutInt
  601. - [ be32, 0x00B44B98, 0x7C641B78 ]
  602. - [ be32, 0x00B44B9C, 0x3C6000B6 ]
  603. - [ be32, 0x00B44BA0, 0x3063394C ]
  604. - [ be32, 0x00B44BA4, 0x48AD546F ]
  605. - [ be32, 0x00B44BA8, 0x3C6000B9 ]
  606. - [ be32, 0x00B44BAC, 0x30631820 ]
  607. - [ be32, 0x00B44BB0, 0x48AD546F ]
  608. - [ be32, 0x00B44BB4, 0x481E9D16 ]
  609. #ScriptInterpreter_Comm_PUTF_Hook
  610. - [ be32, 0x001E9D68, 0x48B44BBA ]
  611. #PutFloat
  612. - [ be32, 0xB44BB8, 0xFC400890 ]
  613. - [ be32, 0xB44BBC, 0x3C6000B6 ]
  614. - [ be32, 0xB44BC0, 0x3063397C ]
  615. - [ be32, 0xB44BC4, 0x48AD546F ]
  616. - [ be32, 0xB44BC8, 0x3C6000B9 ]
  617. - [ be32, 0xB44BCC, 0x30631820 ]
  618. - [ be32, 0xB44BD0, 0x48AD546F ]
  619. - [ be32, 0xB44BD4, 0x481E9D6E ]
  620. #ScriptInterpreter_Comm_PUTS_Hook
  621. - [ be32, 0x001E9D3C, 0x48B44BDA ]
  622. #PutString
  623. - [ be32, 0x00B44BD8, 0x7C641B78 ]
  624. - [ be32, 0x00B44BDC, 0x3C6000B6 ]
  625. - [ be32, 0x00B44BE0, 0x30633994 ]
  626. - [ be32, 0x00B44BE4, 0x48AD546F ]
  627. - [ be32, 0x00B44BE8, 0x3C6000B9 ]
  628. - [ be32, 0x00B44BEC, 0x30631820 ]
  629. - [ be32, 0x00B44BF0, 0x48AD546F ]
  630. - [ be32, 0x00B44BF4, 0x481E9D42 ]
  631.  
  632. # p5_DisableBlur by TGE, ruipin, kd-11 (Disable Blur Filter)
  633. p5_DisableBlur: &p5_DisableBlur
  634. - [ be32, 0x00FEE27A, 0x9E001700 ]
  635. - [ be32, 0x00FEE27E, 0xC801001D ]
  636. - [ be32, 0x00FEE282, 0x00000000 ]
  637. - [ be32, 0x00FEE286, 0x00000000 ]
  638. - [ be32, 0x00FEE28A, 0x1E810100 ]
  639. - [ be32, 0x00FEE28E, 0xC800001D ]
  640. - [ be32, 0x00FEE292, 0x00000000 ]
  641. - [ be32, 0x00FEE296, 0x00000000 ]
  642.  
  643. # p5_DisableDistortion by TGE, ruipin, kd-11 (Disable "Normal" Distortion Filter (<=99% Alert & Velvet Room))
  644. p5_DisableDistortion: &p5_DisableDistortion
  645. - [ be32, 0x00FE2E28, 0x9E001700 ]
  646. - [ be32, 0x00FE2E2C, 0xC801001D ]
  647. - [ be32, 0x00FE2E30, 0x00000000 ]
  648. - [ be32, 0x00FE2E34, 0x00000000 ]
  649. - [ be32, 0x00FE2E38, 0x1E810100 ]
  650. - [ be32, 0x00FE2E3C, 0xC800001D ]
  651. - [ be32, 0x00FE2E40, 0x00000000 ]
  652. - [ be32, 0x00FE2E44, 0x00000000 ]
  653.  
  654. # p5_Disable100PctDistortion by TGE, ruipin, kd-11 (Disable "Angery" Distortion Filter (100% Alert))
  655. p5_Disable100PctDistortion: &p5_Disable100PctDistortion
  656. - [ be32, 0x00FE31CC, 0x9E001700 ]
  657. - [ be32, 0x00FE31D0, 0xC801001D ]
  658. - [ be32, 0x00FE31D4, 0x00000000 ]
  659. - [ be32, 0x00FE31D8, 0x00000000 ]
  660. - [ be32, 0x00FE31DC, 0x1E810100 ]
  661. - [ be32, 0x00FE31E0, 0xC800001D ]
  662. - [ be32, 0x00FE31E4, 0x00000000 ]
  663. - [ be32, 0x00FE31E8, 0x00000000 ]
  664.  
  665. # p5_NoHudLite by TGE (Disable most HUD elements)
  666. p5_NoHudLite: &p5_NoHudLite
  667. - [ be32, 0xDE4EC, 0x60000000 ] # mission list
  668. - [ be32, 0xE83F4, 0x60000000 ] # place pict
  669. - [ be32, 0xE5920, 0x60000000 ] # check
  670. - [ be32, 0x69CC4, 0x38600001 ] # alert
  671. - [ be32, 0x5F678, 0x60000000 ] # date
  672. - [ be32, 0x38A0D0, 0x4838A186 ] # misc field hud
  673. - [ be32, 0x28FBA0, 0x38600000 ] # party panel
  674. - [ be32, 0x28FBA4, 0x4E800020 ] # party panel
  675. - [ be32, 0xD6B48, 0x60000000 ] # mini map
  676. - [ be32, 0xD6490, 0x60000000 ] # mini map
  677.  
  678. # p5_NoHud by TGE (Disable HUD by disabling rendering of 2d elements entirely. Breaks things.)
  679. p5_NoHud: &p5_NoHud
  680. - [ be32, 0x116934, 0x4E800020 ]
  681.  
  682. # p5_CustomMaxBulletCount by Lipsum (for manually setting max bullet count per member)
  683. p5_CustomMaxBulletCount: &p5_CustomMaxBulletCount
  684. - [ be16, 0x00D5C188, 0 ] # empty - base start
  685. - [ be16, 0x00D5C18A, 16 ] # joker (16)
  686. - [ be16, 0x00D5C18C, 8 ] # ryuji (8)
  687. - [ be16, 0x00D5C18E, 15 ] # morgana (15)
  688. - [ be16, 0x00D5C190, 36 ] # ann (36)
  689. - [ be16, 0x00D5C192, 24 ] # yusuke (24)
  690. - [ be16, 0x00D5C194, 12 ] # makoto (12)
  691. - [ be16, 0x00D5C196, 6 ] # haru (6)
  692. - [ be16, 0x00D5C198, 0 ] # futaba (0)
  693. - [ be16, 0x00D5C19A, 12 ] # goro (12)
  694. - [ be16, 0x00D5C19C, 0 ] # empty - tower rank 5 start
  695. - [ be16, 0x00D5C19E, 32 ] # joker (32)
  696. - [ be16, 0x00D5C1A0, 16 ] # ryuji (16)
  697. - [ be16, 0x00D5C1A2, 25 ] # morgana (25)
  698. - [ be16, 0x00D5C1A4, 60 ] # ann (60)
  699. - [ be16, 0x00D5C1A6, 48 ] # yusuke (48)
  700. - [ be16, 0x00D5C1A8, 24 ] # makoto (24)
  701. - [ be16, 0x00D5C1AA, 12 ] # haru (12)
  702. - [ be16, 0x00D5C1AC, 0 ] # futaba (0)
  703. - [ be16, 0x00D5C1AE, 24 ] # goro (24)
  704.  
  705. # p5_DisableNaviLines by Lipsum (Disable navigator dialog)
  706. p5_DisableNaviLines: &p5_DisableNaviLines
  707. - [ be32, 0x0074a3b4, 0x38a00000 ] # li r5, 0x0 # morgana
  708. - [ be32, 0x0074a424, 0x38a00000 ] # li r5, 0x0 # futaba
  709.  
  710. # p5_EncBgmInOrder by TGE, Lipsum (Plays alternate BGM files in order instead of shuffling)
  711. p5_EncBgmInOrder: &p5_EncBgmInOrder
  712. # patch SoundManager__SetEquipBgm
  713. # branch to trampoline
  714. - [ be32, 0x0006CD68, 0x48B44B52 ] # ba 0x00B44B50
  715. # trampoline
  716. - [ be32, 0x00B44B50, 0x3FDE3000 ] # addis r30, r30, 0x3000 -> 0x30B49738
  717. - [ be32, 0x00B44B54, 0xA07E0000 ] # lhz r3, 0x0(r30)
  718. - [ be32, 0x00B44B58, 0x38630001 ] # addi r3, r3, 0x1
  719. - [ be32, 0x00B44B5C, 0x2803000B ] # cmplwi r3, 0xb (MaxBgm)
  720. - [ be16, 0x00B44B5E, 11 ] # bgm_10 -> 11
  721. - [ be32, 0x00B44B60, 0x41800008 ] # blt +0x8
  722. - [ be32, 0x00B44B64, 0x38600000 ] # li r3, 0x0
  723. # patch music id
  724. - [ be32, 0x00B44B68, 0xB07E0000 ] # sth r3, 0(r30)
  725. # return
  726. - [ be32, 0x00B44B6C, 0x2C1E0000 ] # cmpwi r30, 0
  727. - [ be32, 0x00B44B70, 0x4806CD6E ] # ba 0x0006CD6C
  728. # patch Btl__PlayBgm
  729. # branch to trampoline
  730. - [ be32, 0x0063ACE4, 0x48B44B87 ] # bla 0x00B44B84 (trampoline)
  731. - [ be32, 0x0063ACE8, 0x4806CCBB ] # bla 0x0006CCB8 (SoundManager__GetBgmId)
  732. # trampoline
  733. # check and return if not normal battle bgm
  734. - [ be32, 0x00B44B84, 0x2C1F012C ] # cmpwi r31, 300 # normal battle
  735. - [ be32, 0x00B44B88, 0x41820008 ] # beq 8 # return if not normal battle music
  736. - [ be32, 0x00B44B8C, 0x4E800020 ] # blr
  737. # randomize sound bank
  738. - [ be32, 0x00B44B90, 0x4806CCCB ] # bla 0x0006CCC8 (SoundManager__SetEquipBgm)
  739. # return
  740. - [ be32, 0x00B44B94, 0x4863ACEA ] # ba 0x0063ACE8
  741.  
  742. p5_Patches: &p5_Patches
  743. - [ load, p5_4kUI ]
  744. - [ load, p5_DisableOutlines ]
  745. - [ load, p5_ModSupport ]
  746. # - [ load, p5_FileAccessLog ]
  747. # - [ load, p5_IntroSkip ]
  748. # - [ load, p5_60FPS ]
  749. # - [ load, p5_RandomizedEncounterMusic ]
  750. - [ load, p5_DisableDLCUnlockMessages ]
  751. - [ load, p5_FixScriptPrintingFunctions ]
  752. - [ load, p5_DisableBlur ]
  753. - [ load, p5_DisableDistortion ]
  754. - [ load, p5_Disable100PctDistortion ]
  755. # - [ load, p5_NoHudLite ]
  756. # - [ load, p5_NoHud ]
  757. # - [ load, p5_CustomMaxBulletCount ]
  758. # - [ load, p5_DisableNaviLines ]
  759. # - [ load, p5_EncBgmInOrder ]
  760.  
  761. PPU-e72e715d646a94770d1902364bc66fe33b1b6606: *p5_Patches # US
  762. PPU-b8c34f774adb367761706a7f685d4f8d9d355426: *p5_Patches # EU
  763. # PPU-3b394da7912181d308bf08505009b3578521c756: *p5_Patches # JP 1.00
  764. # PPU-627b365d0abedb3cf080d627faebc9669a0e47db: *p5_Patches # JP 1.01
  765. # PPU-c6ca8f99f2549f34ecceafcadf1960160f843494: *p5_Patches # JP 1.02
  766. # PPU-9da9b988693598fbe1e2d316d1e927c37ad666bc: *p5_Patches # JP 1.03
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement