mirror of
https://github.com/Ultra-NX/UltraNX.git
synced 2025-07-28 21:22:05 +00:00
80 lines
2.0 KiB
YAML
80 lines
2.0 KiB
YAML
# Another Crab's Treasure 1.1.100.2
|
|
# BID: 693314C08EA157F3
|
|
|
|
unsafeCheck: true
|
|
|
|
MASTER_WRITE:
|
|
# Redirect updating various deltas to read frametime target from UnityEngine.Application::targetFrameRate, REF: 08 10 91 52 08 A1 A7 72
|
|
-
|
|
type: bytes
|
|
main_offset: 0x18AE7B8
|
|
value_type: uint32
|
|
value:
|
|
- 0xF001ED48 # adrp x8, 0x5659000
|
|
- 0xB9406908 # ldr w8, [x8, #0x68]
|
|
- 0x1E230101 # ucvtf s1, w8
|
|
- 0x1E2E1000 # fmov s0, #1.00000000
|
|
- 0x1E211800 # fdiv s0, s0, s1
|
|
-
|
|
type: bytes
|
|
main_offset: 0x18B2570
|
|
value_type: uint32
|
|
value:
|
|
- 0xF001ED28 # adrp x8, 0x5659000
|
|
- 0xB9406908 # ldr w8, [x8, #0x68]
|
|
- 0x1E230101 # ucvtf s1, w8
|
|
- 0x1E2E1000 # fmov s0, #1.00000000
|
|
- 0x1E211800 # fdiv s0, s0, s1
|
|
# Redirect Dynamic Resolution GPU Timing target in DynamicResolutionScaler::Update to MAIN+0x5ACEF08
|
|
-
|
|
type: bytes
|
|
main_offset: 0x389C824
|
|
value_type: uint32
|
|
value:
|
|
- 0xD0011188 # adrp x8, #0x5ACE000
|
|
- 0xF9478508 # ldr x8, [x8, #0xf08]
|
|
- 0xD503201F # nop
|
|
- 0xD503201F # nop
|
|
-
|
|
type: bytes
|
|
main_offset: 0x389C8A4
|
|
value_type: uint32
|
|
value:
|
|
- 0xD0011188 # adrp x8, #0x5ACE000
|
|
- 0xF9478508 # ldr x8, [x8, #0xf08]
|
|
- 0xBD402A60 # ldr s0, [x19, #0x28]
|
|
- 0xD503201F # nop
|
|
- 0xD503201F # nop
|
|
-
|
|
type: bytes
|
|
main_offset: 0x389C918
|
|
value_type: uint32
|
|
value:
|
|
- 0xD0011188 # adrp x8, #0x5ACE000
|
|
- 0xF9478508 # ldr x8, [x8, #0xf08]
|
|
- 0xD503201F # nop
|
|
- 0xD503201F # nop
|
|
# Default values
|
|
-
|
|
type: bytes
|
|
main_offset: 0x5659068
|
|
value_type: uint32
|
|
value: 30
|
|
-
|
|
type: bytes
|
|
main_offset: 0x5ACEF08
|
|
value_type: double
|
|
value: 28.57142857142857
|
|
ALL_FPS:
|
|
# UnityEngine.Application::targetFrameRate
|
|
-
|
|
type: evaluate_write
|
|
address: [MAIN, 0x5659068]
|
|
value_type: uint32
|
|
value: FPS_TARGET
|
|
# GPU Timing Target
|
|
-
|
|
type: evaluate_write
|
|
address: [MAIN, 0x5ACEF08]
|
|
value_type: double
|
|
value: "1000 / (FPS_TARGET + 5)" |