# No Man's Sky 5.6.4
# BID: E152A4B27D349B17

unsafeCheck: true

MASTER_WRITE:
  # Redirect DR frametime target to MAIN+0x4728FF0
  # REF: 08 4E A8 52 00 01 27 1E 48 8F A8 52, ADRP + ADD + LDR above that
  -
    type: bytes
    main_offset: 0x1F3FD58
    value_type: uint32
    value:
      - 0xB0013F49 # adrp x9, #0x4728000
      - 0xBD4FF120 # ldr s0, [x9, #0xff0]
      - 0xD503201F # NOP
  # default value
  -
    type: bytes
    main_offset: 0x4728FF0
    value_type: float
    value: 30
ALL_FPS:
  -
    type: evaluate_write
    address: [MAIN, 0x4728FF0]
    value_type: float
    value: FPS_TARGET