# Luigi's Mansion 3 1.4.0
# BID: 79E5950FFA85ACF6
# Credits for finding FPS Lock goes to theboy181

unsafeCheck: true

MASTER_WRITE:
  # Redirect reading FPS Lock to MAIN+0x1D164DC
  -
    type: bytes
    main_offset: 0x7A3E9C
    value_type: uint32
    value: 0xF000AB8C
  # Default value
  -
    type: bytes
    main_offset: 0x1D164DC
    value_type: float
    value: 33.33333333
ALL_FPS:
  # FPS Lock in ms
  -
    type: evaluate_write
    address: [MAIN, 0x1D164DC]
    value_type: float
    value: "1000 / FPS_LOCK_TARGET"
  -
    type: block
    what: timing
