Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Persona 5 4K UI by rexis
- p5_4kUI: &p5_4kUI
- - [ be32, 0x5748f4, 0x38800060 ] # font
- - [ be32, 0x5748f8, 0x38a00060 ]
- - [ be32, 0x56ead4, 0x38600020 ]
- - [ be32, 0x56ead8, 0x4e800020 ]
- - [ be32, 0x576840, 0x3bc00020 ]
- - [ be32, 0x56e6e8, 0x38800020 ]
- - [ bef32,0x576218, 0.16666666 ]
- - [ be32, 0x1cffb0, 0x48b45007 ] # bustups A
- - [ be32, 0x1d027C, 0x48b45007 ]
- - [ be32, 0x1d039C, 0x48b45007 ]
- - [ be32, 0x1cffd4, 0x48b45007 ]
- - [ be32, 0x1d02a0, 0x48b45007 ]
- - [ be32, 0x1d03c0, 0x48b45007 ]
- - [ be32, 0x1db940, 0x48b45007 ] # bustups B
- - [ be32, 0x1db544, 0x48b45007 ]
- - [ be32, 0x1db684, 0x48b45007 ]
- - [ be32, 0x1db978, 0x48b45007 ]
- - [ be32, 0x1db568, 0x48b45007 ]
- - [ be32, 0x1db6a8, 0x48b45007 ]
- - [ be32, 0x5b90f0, 0x48b45007 ] # cutins
- - [ be32, 0x5b9100, 0x48b45007 ]
- - [ be32, 0x5b9598, 0x48b45007 ]
- - [ be32, 0x5b9634, 0x48b45007 ]
- - [ be32, 0x1c4958, 0x481c458a ] # tex size
- - [ be32, 0x1c4a08, 0x481c45f2 ]
- - [ be32, 0x1c45bc, 0x80630038 ]
- - [ be32, 0x1c4624, 0x8063003c ]
- - [ be32, 0x43077c, 0x80630038 ]
- - [ be32, 0x430814, 0x8063003c ]
- - [ be32, 0x430978, 0x80640028 ] # common
- - [ be32, 0x43097c, 0x80a4003c ]
- - [ be32, 0x430a10, 0x48b44f03 ]
- - [ be32, 0x430a24, 0x60000000 ]
- - [ be32, 0x430d90, 0x80630038 ] # common 2
- - [ be32, 0x430e10, 0x8084003c ]
- - [ be32, 0x0ce18c, 0x48b45007 ] # minimap
- - [ be32, 0x0ce1b0, 0x48b45007 ]
- - [ be32, 0x3ebd14, 0x48b45007 ]
- - [ be32, 0x3ebd38, 0x48b45007 ]
- - [ be32, 0x4e67f0, 0x48b45007 ] # hero
- - [ be32, 0x4e6810, 0x48b45007 ]
- - [ be32, 0x245e54, 0x48b45007 ] # poem
- - [ be32, 0x245e78, 0x48b45007 ]
- - [ be32, 0x240a14, 0x48b45007 ] # fusion unlocked
- - [ be32, 0x240a3c, 0x48b45007 ]
- - [ be32, 0x0da694, 0x48b45007 ] # mission title
- - [ be32, 0x0da6c0, 0x48b45007 ]
- - [ be32, 0x11bba0, 0x48b45007 ] # shop title
- - [ be32, 0x11bbc4, 0x48b45007 ]
- - [ be32, 0x0673b0, 0x48b45007 ] # palace alert lvl
- - [ be32, 0x0673d0, 0x48b45007 ]
- - [ be32, 0x3a753c, 0x48b45007 ] # place pictures
- - [ be32, 0x3a7570, 0x48b45007 ]
- - [ be32, 0x141644, 0x48b45007 ] # clinic bg
- - [ be32, 0x141674, 0x48b45007 ]
- - [ be32, 0x1416ac, 0x48b45007 ]
- - [ be32, 0x1416dc, 0x48b45007 ]
- - [ be32, 0x135834, 0x48b45026 ]
- - [ be32, 0x42fc70, 0x48b45047 ] # menu bg, lessons, activites, lvlup...
- - [ be32, 0x42fc94, 0x48b45047 ]
- - [ be32, 0x42fe64, 0x48b45047 ]
- - [ be32, 0x42fe90, 0x48b45047 ]
- - [ be32, 0x3f6284, 0x48b44f4e ] # the 'Q'
- - [ bef32,0x43226c,-0.16666666 ] # persona mask
- - [ bef32,0x432270, 0.16666666 ]
- - [ bef32,0x431a44, 0.16666666 ] # confidant rotating thing
- - [ bef32,0x1d29c0, 252.000000 ] # inventory icons
- - [ bef32,0x1d29c8, 90.0000000 ]
- - [ bef32,0x1d29cc, 251.000000 ]
- - [ bef32,0x1d29d0, 89.0000000 ]
- - [ bef32,0x4c1400, 3.00000000 ] # ? menu red bg
- - [ bef32,0x4c4d9c, 3.00000000 ]
- - [ be32, 0x8143cc, 0x60000000 ] # heart
- - [ be32, 0x8143dc, 0x60000000 ]
- - [ be32, 0x288310, 0x48b44f3f ] # hb revert tex width
- - [ be32, 0x288320, 0x48b44f47 ] # hb revert tex height
- - [ be32, 0x2883c8, 0x48b44fa3 ] # scale to 1/3 patch
- - [ be32, 0x28c160, 0x48b44fb2 ] # hp bar patch
- - [ be32, 0x28c320, 0x48b44fda ] # sp bar patch
- # common stuff
- - [ be32, 0xb45004, 0x38a00003 ] # li r5,0x3
- - [ be32, 0xb45008, 0x7c632bd2 ] # divd r3,r3,r5
- - [ be32, 0xb4500c, 0x4e800020 ] # blr
- - [ be32, 0xb45024, 0xf8610018 ] # std r3,0x18(r1)
- - [ be32, 0xb45028, 0x63c30000 ] # ori r3,r30,0x0
- - [ be32, 0xb4502c, 0x48b44f3f ] # bla 0xb44f3c
- - [ be32, 0xb45030, 0xffa00890 ] # fmr f29,f1
- - [ be32, 0xb45034, 0x63c30000 ] # ori r3,r30,0x0
- - [ be32, 0xb45038, 0x48b44f47 ] # bla 0xb44f44
- - [ be32, 0xb4503c, 0xff800890 ] # fmr f28,f1
- - [ be32, 0xb45040, 0x4813583a ] # ba 0x135838
- - [ be32, 0xb45044, 0xa0a10165 ] # lhz r5,0x165(r1)
- - [ be32, 0xb45048, 0x2c0540c0 ] # cmpwi r5,0x40c0
- - [ be32, 0xb4504c, 0x41820050 ] # beq 0xb4509c
- - [ be32, 0xb45050, 0x2c054255 ] # cmpwi r5,0x4255
- - [ be32, 0xb45054, 0x41820048 ] # beq 0xb4509c
- - [ be32, 0xb45058, 0x2c054436 ] # cmpwi r5,0x4436
- - [ be32, 0xb4505c, 0x41820040 ] # beq 0xb4509c
- - [ be32, 0xb45060, 0x2c054d12 ] # cmpwi r5,0x4d12
- - [ be32, 0xb45064, 0x41820038 ] # beq 0xb4509c
- - [ be32, 0xb45068, 0x2c054d15 ] # cmpwi r5,0x4d15
- - [ be32, 0xb4506c, 0x41820030 ] # beq 0xb4509c
- - [ be32, 0xb45070, 0x2c054d2c ] # cmpwi r5,0x4d2c
- - [ be32, 0xb45074, 0x41820028 ] # beq 0xb4509c
- - [ be32, 0xb45078, 0x2c05621b ] # cmpwi r5,0x621b
- - [ be32, 0xb4507c, 0x41820020 ] # beq 0xb4509c
- - [ be32, 0xb45080, 0xa0a100e5 ] # lhz r5,0xe5(r1)
- - [ be32, 0xb45084, 0x2c054c4d ] # cmpwi r5,0x4c4d
- - [ be32, 0xb45088, 0x41820014 ] # beq 0xb4509c
- - [ be32, 0xb4508c, 0xa0a10235 ] # lhz r5,0x235(r1)
- - [ be32, 0xb45090, 0x2c054c4d ] # cmpwi r5,0x4c4d
- - [ be32, 0xb45094, 0x41820008 ] # beq 0xb4509c
- - [ be32, 0xb45098, 0x48b45006 ] # ba 0xb45004
- - [ be32, 0xb4509c, 0x4e800020 ] # blr
- - [ be32, 0xb44f00, 0xc9a10018 ] # lfd f13,0x18(r1)
- - [ be32, 0xb44f04, 0x81440038 ] # lwz r10,0x38(r4)
- - [ be32, 0xb44f08, 0xf9410018 ] # std r10,0x18(r1)
- - [ be32, 0xb44f0c, 0xc9010018 ] # lfd f8,0x18(r1)
- - [ be32, 0xb44f10, 0xfd00469c ] # fcfid f8,f8
- - [ be32, 0xb44f14, 0x8144002c ] # lwz r10,0x2c(r4)
- - [ be32, 0xb44f18, 0xf9410018 ] # std r10,0x18(r1)
- - [ be32, 0xb44f1c, 0xc8e10018 ] # lfd f7,0x18(r1)
- - [ be32, 0xb44f20, 0xfce03e9c ] # fcfid f7,f7
- - [ be32, 0xb44f24, 0xfd40569c ] # fcfid f10,f10
- - [ be32, 0xb44f28, 0x4e800020 ] # blr
- - [ be32, 0xb44f3c, 0xf821ff81 ] # stdu r1,-0x80(r1)
- - [ be32, 0xb44f40, 0x481c495e ] # ba 0x1c495c
- - [ be32, 0xb44f44, 0xf821ff81 ] # stdu r1,-0x80(r1)
- - [ be32, 0xb44f48, 0x481c4a0e ] # ba 0x1c4a0c
- - [ be32, 0xb44f4c, 0xfda00890 ] # fmr f13,f1
- - [ be32, 0xb44f50, 0x807d0010 ] # lwz r3,0x10(r29)
- - [ be32, 0xb44f54, 0x48b44f3f ] # bla 0xb44f3c
- - [ be32, 0xb44f58, 0xff800890 ] # fmr f28,f1
- - [ be32, 0xb44f5c, 0x807d0010 ] # lwz r3,0x10(r29)
- - [ be32, 0xb44f60, 0x48b44f47 ] # bla 0xb44f44
- - [ be32, 0xb44f64, 0xc37c0010 ] # lfs f27,0x10(r28)
- - [ be32, 0xb44f68, 0xef7b0072 ] # fmuls f27,f27,f1
- - [ be32, 0xb44f6c, 0x807e0004 ] # lwz r3,0x4(r30)
- - [ be32, 0xb44f70, 0xa0630008 ] # lhz r3,0x8(r3)
- - [ be32, 0xb44f74, 0xf8610018 ] # std r3,0x18(r1)
- - [ be32, 0xb44f78, 0xc8610018 ] # lfd f3,0x18(r1)
- - [ be32, 0xb44f7c, 0xfc601e9c ] # fcfid f3,f3
- - [ be32, 0xb44f80, 0xec7a1824 ] # fdivs f3,f26,f3
- - [ be32, 0xb44f84, 0xec4dd82a ] # fadds f2,f13,f27
- - [ be32, 0xb44f88, 0xfc206890 ] # fmr f1,f13
- - [ be32, 0xb44f8c, 0x483f6292 ] # ba 0x3f6290
- # healthbars
- - [ be32, 0xb44fa0, 0x3c803eaa ] # lis r4,0x3eaa
- - [ be32, 0xb44fa4, 0x90870090 ] # stw r4,0x90(r7)
- - [ be32, 0xb44fa8, 0x90870094 ] # stw r4,0x94(r7)
- - [ be32, 0xb44fac, 0x4e800020 ] # blr
- - [ be32, 0xb44fb0, 0x3c60c30a ] # lis r3,-0x3e90
- - [ be32, 0xb44fb4, 0x9061008c ] # stw r3,0x8c(r1)
- - [ be32, 0xb44fb8, 0x3c60c170 ] # lis r3,-0x3cf6
- - [ be32, 0xb44fbc, 0x90610090 ] # stw r3,0x90(r1)
- - [ be32, 0xb44fc0, 0x63430000 ] # ori r3,r26,0x0
- - [ be32, 0xb44fc4, 0x62240000 ] # ori r4,r17,0x0
- - [ be32, 0xb44fc8, 0x62a50000 ] # ori r5,r21,0x0
- - [ be32, 0xb44fcc, 0x48288003 ] # bla 0x288000
- - [ be32, 0xb44fd0, 0x3c600029 ] # lis r3,0x29
- - [ be32, 0xb44fd4, 0x4828c166 ] # ba 0x28c164
- - [ be32, 0xb44fd8, 0x3c60c2ba ] # lis r3,-0x3d46
- - [ be32, 0xb44fdc, 0x9061008c ] # stw r3,0x8c(r1)
- - [ be32, 0xb44fe0, 0x63430000 ] # ori r3,r26,0x0
- - [ be32, 0xb44fe4, 0x62240000 ] # ori r4,r17,0x0
- - [ be32, 0xb44fe8, 0x62a50000 ] # ori r5,r21,0x0
- - [ be32, 0xb44fec, 0x48288003 ] # bla 0x288000
- - [ be32, 0xb44ff0, 0xe8610130 ] # ld r3,0x130(r1)
- - [ be32, 0xb44ff4, 0x4828c326 ] # ba 0x28c324
- # disable uglify shader
- - [ be32, 0xfedde2, 0x9e001700 ]
- - [ be32, 0xfedde6, 0xc801001d ]
- - [ be32, 0xfeddea, 0x00000000 ]
- - [ be32, 0xfeddee, 0x00000000 ]
- - [ be32, 0xfeddf2, 0x1e810100 ]
- - [ be32, 0xfeddf6, 0xc800001d ]
- - [ be32, 0xfeddfa, 0x00000000 ]
- - [ be32, 0xfeddfe, 0x00000000 ]
- # Disable character outlines by rexis
- p5_DisableOutlines: &p5_DisableOutlines
- - [ be32, 0xfe5460, 0x00010000 ]
- # p5_ModSupport by TGE (File replacement through mod.cpk)
- p5_ModSupport: &p5_ModSupport
- # make %s/hdd.cpk -> %s%s/mod.cpk
- - [ be32, 0x00B4D638, 0x25732573 ]
- - [ be32, 0x00B4D63C, 0x2F6D6F64 ]
- - [ be32, 0x00B4D640, 0x2E63706B ]
- # make mod.cpk file path
- - [ be32, 0x00114CA4, 0x3C6000B5 ] # lis r3, cpkPathString@ha
- - [ be32, 0x00114CA8, 0x33E3D638 ] # addic r31, r3, cpkPathString@l
- - [ be32, 0x00114CAC, 0x48968BEB ] # bla getInstallPath
- - [ be32, 0x00114CB0, 0x60000000 ] # nop
- - [ be32, 0x00114CB4, 0x7C7E1B78 ] # mr r30, r3
- - [ be32, 0x00114CB8, 0x48968BF7 ] # bla getInstallPath2
- - [ be32, 0x00114CBC, 0x60000000 ] # nop
- - [ be32, 0x00114CC0, 0x33A10070 ] # addic r29, r1, 0x70
- - [ be32, 0x00114CC4, 0x7C661B78 ] # mr r6, r3
- - [ be32, 0x00114CC8, 0x7FA3EB78 ] # mr r3, r29
- - [ be32, 0x00114CCC, 0x7FE4FB78 ] # mr r4, r31
- - [ be32, 0x00114CD0, 0x7FC5F378 ] # mr r5, r30
- - [ be32, 0x00114CD4, 0x48AD567F ] # bla sprintf
- - [ be32, 0x00114CD8, 0x60000000 ] # nop
- - [ be32, 0x00114CDC, 0x48B44A9E ] # ba branchOffset
- - [ be32, 0x00114CE0, 0x60000000 ] # nop
- # trampoline
- - [ be32, 0x00B44A9C, 0x7FA3EB78 ] # mr r3, r29
- - [ be32, 0x00B44AA0, 0x48114B77 ] # bla criFsBindCpk
- - [ be32, 0x00B44AA4, 0x60000000 ] # nop
- - [ be32, 0x00B44AA8, 0x3880000A ] # li r4, 0xA
- - [ be32, 0x00B44AAC, 0x48AB8ED7 ] # bla criFsBindPatch
- - [ be32, 0x00B44AB0, 0x60000000 ] # nop
- - [ be32, 0x00B44AB4, 0x48114CE6 ] # ba 0x114CA4 + 0x40
- - [ be32, 0x00B44AB8, 0x60000000 ] # nop
- # p5_FileAccessLog by TGE (File access log)
- p5_FileAccessLog: &p5_FileAccessLog
- # branch to trampoline
- - [ be32, 0x00AC0A78, 0x48B44ABF ] # bla 0xB44ABC
- - [ be32, 0x00AC0A7C, 0x60000000 ] # nop
- # trampoline
- # prologue
- - [ be32, 0x00B44ABC, 0xF821FF41 ] # stdu r1, -STACK_SIZE(r1)
- - [ be32, 0x00B44AC0, 0x7C0802A6 ] # mflr r0
- - [ be32, 0x00B44AC4, 0xF80100D0 ] # std r0, STACK_SIZE + 0x10(r1)
- # save volatile regs
- - [ be32, 0x00B44AC8, 0xF86100B8 ] # std r3, STACK_SIZE - 0x08(r1)
- - [ be32, 0x00B44ACC, 0xF88100B0 ] # std r4, STACK_SIZE - 0x10(r1)
- - [ be32, 0x00B44AD0, 0xF8A100A8 ] # std r5, STACK_SIZE - 0x18(r1)
- - [ be32, 0x00B44AD4, 0xF8C100A0 ] # std r6, STACK_SIZE - 0x20(r1)
- - [ be32, 0x00B44AD8, 0xF8E10098 ] # std r7, STACK_SIZE - 0x28(r1)
- - [ be32, 0x00B44ADC, 0xF9010090 ] # std r8, STACK_SIZE - 0x30(r1)
- - [ be32, 0x00B44AE0, 0xF9210088 ] # std r9, STACK_SIZE - 0x38(r1)
- - [ be32, 0x00B44AE4, 0xF9410080 ] # std r10, STACK_SIZE - 0x40(r1)
- - [ be32, 0x00B44AE8, 0xF9610078 ] # std r11, STACK_SIZE - 0x48(r1)
- - [ be32, 0x00B44AEC, 0xF9810070 ] # std r12, STACK_SIZE - 0x50(r1)
- # print file name
- - [ be32, 0x00B44AF0, 0x80630004 ] # lwz r3, 0x04(r3)
- - [ be32, 0x00B44AF4, 0x7C6307B4 ] # extsw r3, r3
- - [ be32, 0x00B44AF8, 0x48AD546F ] # bla PTR_PRINTF
- - [ be32, 0x00B44AFC, 0x60000000 ] # nop
- # print newline
- - [ be32, 0x00B44B00, 0x3C6000B9 ] # lis r3, PTR_NEWLINECHAR@ha
- - [ be32, 0x00B44B04, 0x30631820 ] # addic r3, r3, PTR_NEWLINECHAR@l
- - [ be32, 0x00B44B08, 0x48AD546F ] # bla PTR_PRINTF
- - [ be32, 0x00B44B0C, 0x60000000 ] # nop
- # restore volatile regs
- - [ be32, 0x00B44B10, 0xE86100B8 ] # ld r3, STACK_SIZE - 0x08(r1)
- - [ be32, 0x00B44B14, 0xE88100B0 ] # ld r4, STACK_SIZE - 0x10(r1)
- - [ be32, 0x00B44B18, 0xE8A100A8 ] # ld r5, STACK_SIZE - 0x18(r1)
- - [ be32, 0x00B44B1C, 0xE8C100A0 ] # ld r6, STACK_SIZE - 0x20(r1)
- - [ be32, 0x00B44B20, 0xE8E10098 ] # ld r7, STACK_SIZE - 0x28(r1)
- - [ be32, 0x00B44B24, 0xE9010090 ] # ld r8, STACK_SIZE - 0x30(r1)
- - [ be32, 0x00B44B28, 0xE9210088 ] # ld r9, STACK_SIZE - 0x38(r1)
- - [ be32, 0x00B44B2C, 0xE9410080 ] # ld r10, STACK_SIZE - 0x40(r1)
- - [ be32, 0x00B44B30, 0xE9610078 ] # ld r11, STACK_SIZE - 0x48(r1)
- - [ be32, 0x00B44B34, 0xE9810070 ] # ld r12, STACK_SIZE - 0x50(r1)
- # destroy stack frame
- - [ be32, 0x00B44B38, 0xE80100D0 ] # ld r0, STACK_SIZE + 0x10(r1)
- - [ be32, 0x00B44B3C, 0x7C0803A6 ] # mtlr r0
- - [ be32, 0x00B44B40, 0x382100C0 ] # addi r1, r1, STACK_SIZE
- # return
- - [ be32, 0x00B44B44, 0xFB2100F8 ] # std r25, 0xF8(r1)
- - [ be32, 0x00B44B48, 0xFAA100D8 ] # std r21, 0xD8(r1)
- - [ be32, 0x00B44B4C, 0x4E800020 ] # blr
- # p5_IntroSkip by TGE (Skip intro logos)
- p5_IntroSkip: &p5_IntroSkip
- - [ be32, 0x0055AC8C, 0x60000000 ]
- # p5_60FPS by TGE (60 fps)
- p5_60FPS: &p5_60FPS
- - [ be32, 0x00010268, 0x9061009C ] # set update rate to 60 -> r3, 0xE0+var_44(r1)
- - [ be32, 0x008FC864, 0x60000000 ] # nop cellGcmSetSecondVFrequency
- - [ bef32, 0x00012484, 0.01666667 ]
- - [ bef32, 0x00045678, 0.01666667 ]
- - [ bef32, 0x000616F0, 0.01666667 ]
- - [ bef32, 0x00073F20, 0.01666667 ]
- # - [ bef32, 0x000753A0, 0.01666667 ] Doubles camera speed
- - [ bef32, 0x00077E54, 0.01666667 ]
- - [ bef32, 0x00078A70, 0.01666667 ]
- - [ bef32, 0x0007A238, 0.01666667 ]
- - [ bef32, 0x00081864, 0.01666667 ]
- - [ bef32, 0x000885C8, 0.01666667 ]
- - [ bef32, 0x0008C550, 0.01666667 ]
- - [ bef32, 0x0008D6D0, 0.01666667 ]
- - [ bef32, 0x000D058C, 0.01666667 ]
- - [ bef32, 0x000D0B4C, 0.01666667 ]
- - [ bef32, 0x000E4754, 0.01666667 ]
- - [ bef32, 0x000E50F0, 0.01666667 ]
- - [ bef32, 0x000E8190, 0.01666667 ]
- - [ bef32, 0x000F8B78, 0.01666667 ]
- - [ bef32, 0x00101CE8, 0.01666667 ]
- - [ bef32, 0x001E7344, 0.01666667 ]
- - [ bef32, 0x001EB0D4, 0.01666667 ]
- - [ bef32, 0x001EB328, 0.01666667 ]
- - [ bef32, 0x001EB814, 0.01666667 ]
- - [ bef32, 0x001EB940, 0.01666667 ]
- - [ bef32, 0x001EBA04, 0.01666667 ]
- - [ bef32, 0x001EBBA0, 0.01666667 ]
- - [ bef32, 0x001EBCD0, 0.01666667 ]
- - [ bef32, 0x001ECCA0, 0.01666667 ]
- - [ bef32, 0x00234C64, 0.01666667 ]
- - [ bef32, 0x0023F4BC, 0.01666667 ]
- - [ bef32, 0x002400BC, 0.01666667 ]
- - [ bef32, 0x00240BB0, 0.01666667 ]
- - [ bef32, 0x0029231C, 0.01666667 ]
- - [ bef32, 0x00294A70, 0.01666667 ]
- - [ bef32, 0x002952F8, 0.01666667 ]
- #- [ bef32, 0x002B027C, 0.01666667 ] Makes it impossible to run < 60 fps
- - [ bef32, 0x002B0688, 0.01666667 ]
- - [ bef32, 0x002B6154, 0.01666667 ]
- - [ bef32, 0x002B71F8, 0.01666667 ]
- - [ bef32, 0x002B82C8, 0.01666667 ]
- - [ bef32, 0x002B98F8, 0.01666667 ]
- - [ bef32, 0x002B9F8C, 0.01666667 ]
- - [ bef32, 0x002BA614, 0.01666667 ]
- - [ bef32, 0x002BC84C, 0.01666667 ]
- - [ bef32, 0x002BCD2C, 0.01666667 ]
- - [ bef32, 0x002C550C, 0.01666667 ]
- - [ bef32, 0x002D1328, 0.01666667 ]
- #- [ bef32, 0x002D230C, 0.01666667 ] Doubles movement speed
- - [ bef32, 0x002D2DDC, 0.01666667 ]
- - [ bef32, 0x002D8A10, 0.01666667 ]
- - [ bef32, 0x002D8A18, 0.01666667 ]
- - [ bef32, 0x002DA46C, 0.01666667 ]
- - [ bef32, 0x002FBB00, 0.01666667 ]
- - [ bef32, 0x0030E258, 0.01666667 ]
- - [ bef32, 0x003181D4, 0.01666667 ]
- - [ bef32, 0x0031CE24, 0.01666667 ]
- - [ bef32, 0x0031DBE0, 0.01666667 ]
- - [ bef32, 0x0033DBD0, 0.01666667 ]
- - [ bef32, 0x00358664, 0.01666667 ]
- - [ bef32, 0x00359020, 0.01666667 ]
- - [ bef32, 0x0035AD10, 0.01666667 ]
- - [ bef32, 0x00364A98, 0.01666667 ]
- - [ bef32, 0x0037429C, 0.01666667 ]
- - [ bef32, 0x00376E7C, 0.01666667 ]
- - [ bef32, 0x00379B08, 0.01666667 ]
- - [ bef32, 0x0037AAAC, 0.01666667 ]
- - [ bef32, 0x0037CF54, 0.01666667 ]
- - [ bef32, 0x0037DB7C, 0.01666667 ]
- - [ bef32, 0x003803F4, 0.01666667 ]
- - [ bef32, 0x00387A80, 0.01666667 ]
- - [ bef32, 0x00388684, 0.01666667 ]
- - [ bef32, 0x003ACBC0, 0.01666667 ]
- - [ bef32, 0x003BDDD0, 0.01666667 ]
- - [ bef32, 0x003E944C, 0.01666667 ]
- - [ bef32, 0x003F35EC, 0.01666667 ]
- - [ bef32, 0x003F6FF4, 0.01666667 ]
- - [ bef32, 0x0058CE18, 0.01666667 ]
- - [ bef32, 0x0058DE64, 0.01666667 ]
- - [ bef32, 0x0058E82C, 0.01666667 ]
- - [ bef32, 0x0058E958, 0.01666667 ]
- - [ bef32, 0x0058F47C, 0.01666667 ]
- - [ bef32, 0x0058FA00, 0.01666667 ]
- - [ bef32, 0x0058FAB4, 0.01666667 ]
- - [ bef32, 0x0058FBE4, 0.01666667 ]
- - [ bef32, 0x0058FD2C, 0.01666667 ]
- - [ bef32, 0x0058FE6C, 0.01666667 ]
- - [ bef32, 0x00590A04, 0.01666667 ]
- - [ bef32, 0x005B6914, 0.01666667 ]
- - [ bef32, 0x005F1C6C, 0.01666667 ]
- - [ bef32, 0x0062076C, 0.01666667 ] # battle related stuff
- - [ bef32, 0x007072BC, 0.01666667 ]
- - [ bef32, 0x00722D7C, 0.01666667 ]
- - [ bef32, 0x0073C840, 0.01666667 ]
- - [ bef32, 0x00772E50, 0.01666667 ]
- - [ bef32, 0x0087B338, 0.01666667 ]
- - [ bef32, 0x00B10110, 0.01666667 ]
- - [ bef32, 0x00B6AA14, 0.01666667 ]
- - [ bef32, 0x00B6AA38, 0.01666667 ]
- - [ bef32, 0x00B70B48, 0.01666667 ]
- - [ bef32, 0x00B70BC8, 0.01666667 ]
- - [ bef32, 0x00B71CF4, 0.01666667 ]
- - [ bef32, 0x00B72F38, 0.01666667 ]
- - [ bef32, 0x00CFF46C, 0.01666667 ]
- - [ bef32, 0x00061700, 0.1666667 ]
- - [ bef32, 0x00069AA4, 0.1666667 ]
- - [ bef32, 0x0007A1EC, 0.1666667 ]
- - [ bef32, 0x00081880, 0.1666667 ]
- - [ bef32, 0x000C8258, 0.1666667 ]
- - [ bef32, 0x000C991C, 0.1666667 ]
- - [ bef32, 0x00101CCC, 0.1666667 ]
- - [ bef32, 0x001E2C44, 0.1666667 ]
- - [ bef32, 0x001E61E8, 0.1666667 ]
- - [ bef32, 0x001E7338, 0.1666667 ]
- - [ bef32, 0x00250C50, 0.1666667 ]
- - [ bef32, 0x00256B20, 0.1666667 ]
- - [ bef32, 0x00292100, 0.1666667 ]
- - [ bef32, 0x00294A60, 0.1666667 ]
- - [ bef32, 0x002952E4, 0.1666667 ]
- - [ bef32, 0x0029FD98, 0.1666667 ]
- - [ bef32, 0x002A1BB8, 0.1666667 ]
- - [ bef32, 0x002A41D0, 0.1666667 ]
- - [ bef32, 0x002A6124, 0.1666667 ]
- - [ bef32, 0x002B4FF0, 0.1666667 ]
- - [ bef32, 0x002B60DC, 0.1666667 ]
- - [ bef32, 0x002B7174, 0.1666667 ]
- - [ bef32, 0x002B82F4, 0.1666667 ]
- - [ bef32, 0x002B8E74, 0.1666667 ]
- - [ bef32, 0x002BA600, 0.1666667 ]
- - [ bef32, 0x002BAB30, 0.1666667 ]
- - [ bef32, 0x002BB4E0, 0.1666667 ]
- - [ bef32, 0x002BB808, 0.1666667 ]
- - [ bef32, 0x002BC368, 0.1666667 ]
- - [ bef32, 0x002BC844, 0.1666667 ]
- - [ bef32, 0x002BD414, 0.1666667 ]
- - [ bef32, 0x002C4F54, 0.1666667 ]
- - [ bef32, 0x002C4FF0, 0.1666667 ]
- - [ bef32, 0x002C69E4, 0.1666667 ]
- - [ bef32, 0x002D4378, 0.1666667 ]
- - [ bef32, 0x002DD968, 0.1666667 ]
- - [ bef32, 0x002DE538, 0.1666667 ]
- - [ bef32, 0x002DEA04, 0.1666667 ]
- - [ bef32, 0x0030D7A0, 0.1666667 ]
- - [ bef32, 0x0030E6BC, 0.1666667 ]
- - [ bef32, 0x003181B8, 0.1666667 ]
- - [ bef32, 0x0031AFE0, 0.1666667 ]
- - [ bef32, 0x0031CE38, 0.1666667 ]
- - [ bef32, 0x0031DBF0, 0.1666667 ]
- - [ bef32, 0x0031EC74, 0.1666667 ]
- - [ bef32, 0x00322FB4, 0.1666667 ]
- - [ bef32, 0x00356560, 0.1666667 ]
- - [ bef32, 0x003586BC, 0.1666667 ]
- - [ bef32, 0x00358F90, 0.1666667 ]
- - [ bef32, 0x0035A380, 0.1666667 ]
- - [ bef32, 0x0035AA3C, 0.1666667 ]
- - [ bef32, 0x00364A9C, 0.1666667 ]
- - [ bef32, 0x003688C8, 0.1666667 ]
- - [ bef32, 0x00368A88, 0.1666667 ]
- - [ bef32, 0x00368E30, 0.1666667 ]
- - [ bef32, 0x00376FD0, 0.1666667 ]
- - [ bef32, 0x00377538, 0.1666667 ]
- - [ bef32, 0x00377CD8, 0.1666667 ]
- - [ bef32, 0x0037C2B0, 0.1666667 ]
- - [ bef32, 0x0037D310, 0.1666667 ]
- - [ bef32, 0x0037D418, 0.1666667 ]
- - [ bef32, 0x0037D5B4, 0.1666667 ]
- - [ bef32, 0x0037DD08, 0.1666667 ]
- - [ bef32, 0x0037DE10, 0.1666667 ]
- - [ bef32, 0x0037DF78, 0.1666667 ]
- - [ bef32, 0x00382F38, 0.1666667 ]
- - [ bef32, 0x003845F0, 0.1666667 ]
- - [ bef32, 0x00387A6C, 0.1666667 ]
- - [ bef32, 0x00398208, 0.1666667 ]
- - [ bef32, 0x00398460, 0.1666667 ]
- - [ bef32, 0x003999F8, 0.1666667 ]
- - [ bef32, 0x003A7C64, 0.1666667 ]
- - [ bef32, 0x003AA418, 0.1666667 ]
- - [ bef32, 0x003AE0E4, 0.1666667 ]
- - [ bef32, 0x003AE3A0, 0.1666667 ]
- - [ bef32, 0x003B25D8, 0.1666667 ]
- - [ bef32, 0x003BC448, 0.1666667 ]
- - [ bef32, 0x003C58C0, 0.1666667 ]
- - [ bef32, 0x003C67B0, 0.1666667 ]
- - [ bef32, 0x003C6D6C, 0.1666667 ]
- - [ bef32, 0x003EBC20, 0.1666667 ]
- - [ bef32, 0x003EE5F0, 0.1666667 ]
- - [ bef32, 0x003F1FE0, 0.1666667 ]
- - [ bef32, 0x003F6FC0, 0.1666667 ]
- - [ bef32, 0x004EB808, 0.1666667 ]
- - [ bef32, 0x0055251C, 0.1666667 ]
- - [ bef32, 0x0055EC48, 0.1666667 ]
- - [ bef32, 0x0055F4A8, 0.1666667 ]
- - [ bef32, 0x0057DC08, 0.1666667 ]
- - [ bef32, 0x0057E498, 0.1666667 ]
- - [ bef32, 0x005C5364, 0.1666667 ]
- - [ bef32, 0x00620714, 0.1666667 ]
- - [ bef32, 0x00635CB4, 0.1666667 ]
- - [ bef32, 0x00642B98, 0.1666667 ]
- - [ bef32, 0x00654EE8, 0.1666667 ]
- - [ bef32, 0x00662B04, 0.1666667 ]
- - [ bef32, 0x006AFF98, 0.1666667 ]
- - [ bef32, 0x006CAA44, 0.1666667 ]
- - [ bef32, 0x006E0224, 0.1666667 ]
- - [ bef32, 0x006E31A0, 0.1666667 ]
- - [ bef32, 0x006FCD3C, 0.1666667 ]
- - [ bef32, 0x00772E54, 0.1666667 ]
- - [ bef32, 0x00797508, 0.1666667 ]
- - [ bef32, 0x00B52E3C, 0.1666667 ]
- - [ bef32, 0x00B6AD00, 0.1666667 ]
- - [ bef32, 0x00B6B71C, 0.1666667 ]
- - [ bef32, 0x00B6E478, 0.1666667 ]
- - [ bef32, 0x00B6E880, 0.1666667 ]
- - [ bef32, 0x00B6E8B8, 0.1666667 ]
- - [ bef32, 0x00B6E8F0, 0.1666667 ]
- - [ bef32, 0x00B6E928, 0.1666667 ]
- - [ bef32, 0x00B6E960, 0.1666667 ]
- - [ bef32, 0x00B6E998, 0.1666667 ]
- - [ bef32, 0x00B6E9D0, 0.1666667 ]
- - [ bef32, 0x00B6EA08, 0.1666667 ]
- - [ bef32, 0x00B6EA40, 0.1666667 ]
- - [ bef32, 0x00B6EA78, 0.1666667 ]
- - [ bef32, 0x00B6EAB0, 0.1666667 ]
- - [ bef32, 0x00B6EAE8, 0.1666667 ]
- - [ bef32, 0x00B6EB20, 0.1666667 ]
- - [ bef32, 0x00B6EB58, 0.1666667 ]
- - [ bef32, 0x00B6EB90, 0.1666667 ]
- - [ bef32, 0x00B6EBC8, 0.1666667 ]
- - [ bef32, 0x00B6EC00, 0.1666667 ]
- - [ bef32, 0x00B6EC38, 0.1666667 ]
- - [ bef32, 0x00B6EC70, 0.1666667 ]
- - [ bef32, 0x00B6ECA8, 0.1666667 ]
- - [ bef32, 0x00B70A54, 0.1666667 ]
- - [ bef32, 0x00B70AF0, 0.1666667 ]
- - [ bef32, 0x00B70AF8, 0.1666667 ]
- - [ bef32, 0x00B70B00, 0.1666667 ]
- - [ bef32, 0x00B70B08, 0.1666667 ]
- - [ bef32, 0x00B70B10, 0.1666667 ]
- - [ bef32, 0x00B70B20, 0.1666667 ]
- - [ bef32, 0x00B70B78, 0.1666667 ]
- - [ bef32, 0x00B70B88, 0.1666667 ]
- - [ bef32, 0x00B70BB4, 0.1666667 ]
- - [ bef32, 0x00B70BC4, 0.1666667 ]
- - [ bef32, 0x00B70F60, 0.1666667 ]
- - [ bef32, 0x00B71BAC, 0.1666667 ]
- - [ bef32, 0x00B71BBC, 0.1666667 ]
- - [ bef32, 0x00B9BD30, 0.1666667 ]
- - [ bef32, 0x00CF96AC, 0.1666667 ]
- - [ bef32, 0x00CFA1E8, 0.1666667 ]
- - [ bef32, 0x00CFA20C, 0.1666667 ]
- - [ bef32, 0x00CFB210, 0.1666667 ]
- - [ bef32, 0x00CFB778, 0.1666667 ]
- - [ bef32, 0x00CFBC30, 0.1666667 ]
- - [ bef32, 0x00CFBCA8, 0.1666667 ]
- - [ bef32, 0x00CFBFD4, 0.1666667 ]
- - [ bef32, 0x00CFC0A8, 0.1666667 ]
- - [ bef32, 0x00CFF3CC, 0.1666667 ]
- - [ bef32, 0x00CFF3D4, 0.1666667 ]
- - [ bef32, 0x00CFF470, 0.1666667 ]
- - [ bef32, 0x00CFF478, 0.1666667 ]
- - [ bef32, 0x00CFF480, 0.1666667 ]
- - [ bef32, 0x00D06840, 0.1666667 ]
- - [ bef32, 0x00D06848, 0.1666667 ]
- - [ be32, 0x000FB71C, 0x3C603C88 ]
- - [ be32, 0x00109B14, 0x3C603C88 ]
- - [ be32, 0x0023FBDC, 0x3CA03C88 ]
- - [ be32, 0x00240620, 0x3CA03C88 ]
- - [ be32, 0x00241258, 0x3C803C88 ]
- - [ be32, 0x003CA4BC, 0x3C603C88 ]
- - [ be32, 0x0087B448, 0x3C603C88 ]
- - [ be32, 0x00589358, 0x60000000 ] # Fix cutscene voice cutoff
- # p5_RandomizedEncounterMusic by TGE (Shuffled/randomized encounter music)
- p5_RandomizedEncounterMusic: &p5_RandomizedEncounterMusic
- # patch SoundManager__SetEquipBgm
- # branch to trampoline
- - [ be32, 0x0006CD68, 0x48B44B52 ] # ba 0x00B44B50
- # trampoline
- # Rnd() % MaxBgm
- - [ be32, 0x00B44B50, 0x4891DA07 ] # bla 0x0091DA04 (Rnd)
- - [ be32, 0x00B44B54, 0x38C0000B ] # li r6, 11 (MaxBgm)
- - [ be16, 0x00B44B56, 11 ] # bgm_10 -> 11
- - [ be32, 0x00B44B58, 0x30860001 ] # addic r4, r6, 1
- - [ be32, 0x00B44B5C, 0x7C832396 ] # divwu r4, r3, r4
- - [ be32, 0x00B44B60, 0x7CA431D6 ] # mullw r5, r4, r6
- - [ be32, 0x00B44B64, 0x7C852014 ] # addc r4, r5, r4
- - [ be32, 0x00B44B68, 0x7C641810 ] # subfc r3, r4, r3
- - [ be32, 0x00B44B6C, 0x7C6307B4 ] # extsw r3, r3
- # patch music id
- - [ be32, 0x00B44B70, 0x3FDE3000 ] # addis r30, r30, 0x3000 -> 0x30B49738
- - [ be32, 0x00B44B74, 0xB07E0000 ] # sth r3, 0(r30)
- # return
- - [ be32, 0x00B44B78, 0x2C1E0000 ] # cmpwi r30, 0
- - [ be32, 0x00B44B7C, 0x4806CD6E ] # ba 0x0006CD6C
- # patch Btl__PlayBgm
- # branch to trampoline
- - [ be32, 0x0063ACE4, 0x48B44B87 ] # bla 0x00B44B84 (trampoline)
- - [ be32, 0x0063ACE8, 0x4806CCBB ] # bla 0x0006CCB8 (SoundManager__GetBgmId)
- # trampoline
- # check and return if not normal battle bgm
- - [ be32, 0x00B44B84, 0x2C1F012C ] # cmpwi r31, 300 # normal battle
- - [ be32, 0x00B44B88, 0x41820008 ] # beq 8 # return if not normal battle music
- - [ be32, 0x00B44B8C, 0x4E800020 ] # blr
- # randomize sound bank
- - [ be32, 0x00B44B90, 0x4806CCCB ] # bla 0x0006CCC8 (SoundManager__SetEquipBgm)
- # return
- - [ be32, 0x00B44B94, 0x4863ACEA ] # ba 0x0063ACE8
- # p5_DisableDLCUnlockMessages by TGE (Disable DLC unlock messages)
- p5_DisableDLCUnlockMessages: &p5_DisableDLCUnlockMessages
- - [ be32, 0x197AE8, 0x4E800020 ]
- # p5_FixScriptPrintingFunctions by TGE (Fix script printing functions)
- p5_FixScriptPrintingFunctions: &p5_FixScriptPrintingFunctions
- #ScriptInterpreter_Comm_PUT_Hook
- - [ be32, 0x001E9D10, 0x48B44B9A ]
- #PutInt
- - [ be32, 0x00B44B98, 0x7C641B78 ]
- - [ be32, 0x00B44B9C, 0x3C6000B6 ]
- - [ be32, 0x00B44BA0, 0x3063394C ]
- - [ be32, 0x00B44BA4, 0x48AD546F ]
- - [ be32, 0x00B44BA8, 0x3C6000B9 ]
- - [ be32, 0x00B44BAC, 0x30631820 ]
- - [ be32, 0x00B44BB0, 0x48AD546F ]
- - [ be32, 0x00B44BB4, 0x481E9D16 ]
- #ScriptInterpreter_Comm_PUTF_Hook
- - [ be32, 0x001E9D68, 0x48B44BBA ]
- #PutFloat
- - [ be32, 0xB44BB8, 0xFC400890 ]
- - [ be32, 0xB44BBC, 0x3C6000B6 ]
- - [ be32, 0xB44BC0, 0x3063397C ]
- - [ be32, 0xB44BC4, 0x48AD546F ]
- - [ be32, 0xB44BC8, 0x3C6000B9 ]
- - [ be32, 0xB44BCC, 0x30631820 ]
- - [ be32, 0xB44BD0, 0x48AD546F ]
- - [ be32, 0xB44BD4, 0x481E9D6E ]
- #ScriptInterpreter_Comm_PUTS_Hook
- - [ be32, 0x001E9D3C, 0x48B44BDA ]
- #PutString
- - [ be32, 0x00B44BD8, 0x7C641B78 ]
- - [ be32, 0x00B44BDC, 0x3C6000B6 ]
- - [ be32, 0x00B44BE0, 0x30633994 ]
- - [ be32, 0x00B44BE4, 0x48AD546F ]
- - [ be32, 0x00B44BE8, 0x3C6000B9 ]
- - [ be32, 0x00B44BEC, 0x30631820 ]
- - [ be32, 0x00B44BF0, 0x48AD546F ]
- - [ be32, 0x00B44BF4, 0x481E9D42 ]
- # p5_DisableBlur by TGE, ruipin, kd-11 (Disable Blur Filter)
- p5_DisableBlur: &p5_DisableBlur
- - [ be32, 0x00FEE27A, 0x9E001700 ]
- - [ be32, 0x00FEE27E, 0xC801001D ]
- - [ be32, 0x00FEE282, 0x00000000 ]
- - [ be32, 0x00FEE286, 0x00000000 ]
- - [ be32, 0x00FEE28A, 0x1E810100 ]
- - [ be32, 0x00FEE28E, 0xC800001D ]
- - [ be32, 0x00FEE292, 0x00000000 ]
- - [ be32, 0x00FEE296, 0x00000000 ]
- # p5_DisableDistortion by TGE, ruipin, kd-11 (Disable "Normal" Distortion Filter (<=99% Alert & Velvet Room))
- p5_DisableDistortion: &p5_DisableDistortion
- - [ be32, 0x00FE2E28, 0x9E001700 ]
- - [ be32, 0x00FE2E2C, 0xC801001D ]
- - [ be32, 0x00FE2E30, 0x00000000 ]
- - [ be32, 0x00FE2E34, 0x00000000 ]
- - [ be32, 0x00FE2E38, 0x1E810100 ]
- - [ be32, 0x00FE2E3C, 0xC800001D ]
- - [ be32, 0x00FE2E40, 0x00000000 ]
- - [ be32, 0x00FE2E44, 0x00000000 ]
- # p5_Disable100PctDistortion by TGE, ruipin, kd-11 (Disable "Angery" Distortion Filter (100% Alert))
- p5_Disable100PctDistortion: &p5_Disable100PctDistortion
- - [ be32, 0x00FE31CC, 0x9E001700 ]
- - [ be32, 0x00FE31D0, 0xC801001D ]
- - [ be32, 0x00FE31D4, 0x00000000 ]
- - [ be32, 0x00FE31D8, 0x00000000 ]
- - [ be32, 0x00FE31DC, 0x1E810100 ]
- - [ be32, 0x00FE31E0, 0xC800001D ]
- - [ be32, 0x00FE31E4, 0x00000000 ]
- - [ be32, 0x00FE31E8, 0x00000000 ]
- # p5_NoHudLite by TGE (Disable most HUD elements)
- p5_NoHudLite: &p5_NoHudLite
- - [ be32, 0xDE4EC, 0x60000000 ] # mission list
- - [ be32, 0xE83F4, 0x60000000 ] # place pict
- - [ be32, 0xE5920, 0x60000000 ] # check
- - [ be32, 0x69CC4, 0x38600001 ] # alert
- - [ be32, 0x5F678, 0x60000000 ] # date
- - [ be32, 0x38A0D0, 0x4838A186 ] # misc field hud
- - [ be32, 0x28FBA0, 0x38600000 ] # party panel
- - [ be32, 0x28FBA4, 0x4E800020 ] # party panel
- - [ be32, 0xD6B48, 0x60000000 ] # mini map
- - [ be32, 0xD6490, 0x60000000 ] # mini map
- # p5_NoHud by TGE (Disable HUD by disabling rendering of 2d elements entirely. Breaks things.)
- p5_NoHud: &p5_NoHud
- - [ be32, 0x116934, 0x4E800020 ]
- # p5_CustomMaxBulletCount by Lipsum (for manually setting max bullet count per member)
- p5_CustomMaxBulletCount: &p5_CustomMaxBulletCount
- - [ be16, 0x00D5C188, 0 ] # empty - base start
- - [ be16, 0x00D5C18A, 16 ] # joker (16)
- - [ be16, 0x00D5C18C, 8 ] # ryuji (8)
- - [ be16, 0x00D5C18E, 15 ] # morgana (15)
- - [ be16, 0x00D5C190, 36 ] # ann (36)
- - [ be16, 0x00D5C192, 24 ] # yusuke (24)
- - [ be16, 0x00D5C194, 12 ] # makoto (12)
- - [ be16, 0x00D5C196, 6 ] # haru (6)
- - [ be16, 0x00D5C198, 0 ] # futaba (0)
- - [ be16, 0x00D5C19A, 12 ] # goro (12)
- - [ be16, 0x00D5C19C, 0 ] # empty - tower rank 5 start
- - [ be16, 0x00D5C19E, 32 ] # joker (32)
- - [ be16, 0x00D5C1A0, 16 ] # ryuji (16)
- - [ be16, 0x00D5C1A2, 25 ] # morgana (25)
- - [ be16, 0x00D5C1A4, 60 ] # ann (60)
- - [ be16, 0x00D5C1A6, 48 ] # yusuke (48)
- - [ be16, 0x00D5C1A8, 24 ] # makoto (24)
- - [ be16, 0x00D5C1AA, 12 ] # haru (12)
- - [ be16, 0x00D5C1AC, 0 ] # futaba (0)
- - [ be16, 0x00D5C1AE, 24 ] # goro (24)
- # p5_DisableNaviLines by Lipsum (Disable navigator dialog)
- p5_DisableNaviLines: &p5_DisableNaviLines
- - [ be32, 0x0074a3b4, 0x38a00000 ] # li r5, 0x0 # morgana
- - [ be32, 0x0074a424, 0x38a00000 ] # li r5, 0x0 # futaba
- # p5_EncBgmInOrder by TGE, Lipsum (Plays alternate BGM files in order instead of shuffling)
- p5_EncBgmInOrder: &p5_EncBgmInOrder
- # patch SoundManager__SetEquipBgm
- # branch to trampoline
- - [ be32, 0x0006CD68, 0x48B44B52 ] # ba 0x00B44B50
- # trampoline
- - [ be32, 0x00B44B50, 0x3FDE3000 ] # addis r30, r30, 0x3000 -> 0x30B49738
- - [ be32, 0x00B44B54, 0xA07E0000 ] # lhz r3, 0x0(r30)
- - [ be32, 0x00B44B58, 0x38630001 ] # addi r3, r3, 0x1
- - [ be32, 0x00B44B5C, 0x2803000B ] # cmplwi r3, 0xb (MaxBgm)
- - [ be16, 0x00B44B5E, 11 ] # bgm_10 -> 11
- - [ be32, 0x00B44B60, 0x41800008 ] # blt +0x8
- - [ be32, 0x00B44B64, 0x38600000 ] # li r3, 0x0
- # patch music id
- - [ be32, 0x00B44B68, 0xB07E0000 ] # sth r3, 0(r30)
- # return
- - [ be32, 0x00B44B6C, 0x2C1E0000 ] # cmpwi r30, 0
- - [ be32, 0x00B44B70, 0x4806CD6E ] # ba 0x0006CD6C
- # patch Btl__PlayBgm
- # branch to trampoline
- - [ be32, 0x0063ACE4, 0x48B44B87 ] # bla 0x00B44B84 (trampoline)
- - [ be32, 0x0063ACE8, 0x4806CCBB ] # bla 0x0006CCB8 (SoundManager__GetBgmId)
- # trampoline
- # check and return if not normal battle bgm
- - [ be32, 0x00B44B84, 0x2C1F012C ] # cmpwi r31, 300 # normal battle
- - [ be32, 0x00B44B88, 0x41820008 ] # beq 8 # return if not normal battle music
- - [ be32, 0x00B44B8C, 0x4E800020 ] # blr
- # randomize sound bank
- - [ be32, 0x00B44B90, 0x4806CCCB ] # bla 0x0006CCC8 (SoundManager__SetEquipBgm)
- # return
- - [ be32, 0x00B44B94, 0x4863ACEA ] # ba 0x0063ACE8
- p5_Patches: &p5_Patches
- - [ load, p5_4kUI ]
- - [ load, p5_DisableOutlines ]
- - [ load, p5_ModSupport ]
- # - [ load, p5_FileAccessLog ]
- # - [ load, p5_IntroSkip ]
- # - [ load, p5_60FPS ]
- # - [ load, p5_RandomizedEncounterMusic ]
- - [ load, p5_DisableDLCUnlockMessages ]
- - [ load, p5_FixScriptPrintingFunctions ]
- - [ load, p5_DisableBlur ]
- - [ load, p5_DisableDistortion ]
- - [ load, p5_Disable100PctDistortion ]
- # - [ load, p5_NoHudLite ]
- # - [ load, p5_NoHud ]
- # - [ load, p5_CustomMaxBulletCount ]
- # - [ load, p5_DisableNaviLines ]
- # - [ load, p5_EncBgmInOrder ]
- PPU-e72e715d646a94770d1902364bc66fe33b1b6606: *p5_Patches # US
- PPU-b8c34f774adb367761706a7f685d4f8d9d355426: *p5_Patches # EU
- # PPU-3b394da7912181d308bf08505009b3578521c756: *p5_Patches # JP 1.00
- # PPU-627b365d0abedb3cf080d627faebc9669a0e47db: *p5_Patches # JP 1.01
- # PPU-c6ca8f99f2549f34ecceafcadf1960160f843494: *p5_Patches # JP 1.02
- # PPU-9da9b988693598fbe1e2d316d1e927c37ad666bc: *p5_Patches # JP 1.03
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement