# The Legend of Heroes: Trails into Reverie 1.0.2
# BID: A3E80F5FE073639D

unsafeCheck: true

MASTER_WRITE:
  # Read FPS lock time to MAIN+0x7A51500
  -
    type: bytes
    main_offset: 0x80DCC
    value_type: uint32
    value:
      - 0xB003CE88
      - 0xB9450108
  -
    type: bytes
    main_offset: 0x80E00
    value_type: uint32
    value:
      - 0xB003CE89
      - 0xB9450129
  # Default value
  -
    type: bytes
    main_offset: 0x7A51500
    value_type: float
    value: 0.0333333333
  # Write game's loop time as float to MAIN+0x7A51504
  -
    type: bytes
    main_offset: 0x80DD4
    value_type: uint32
    value: 0x94339A8B
  -
    type: bytes
    main_offset: 0xD67800
    value_type: uint32
    value: 
      - 0x1E227821
      - 0xD0036754
      - 0xBD050681
      - 0xD65F03C0
  - # Read lowest timing float factor from MAIN+0x7A51504
    type: bytes
    main_offset: 0x80E70
    value_type: uint32
    value:
      - 0xB003CE8B
      - 0xB945056B
  - # Default value
    type: bytes
    main_offset: 0x7A51504
    value_type: float
    value: 0.0333333333
15FPS:
  -
    type: write
    address: [MAIN, 0x7A51500]
    value_type: float
    value: 0.0666666666
20FPS:
  -
    type: write
    address: [MAIN, 0x7A51500]
    value_type: float
    value: 0.05
25FPS:
  -
    type: write
    address: [MAIN, 0x7A51500]
    value_type: float
    value: 0.04
  -
    type: block
    what: timing
30FPS:
  - # default value
    type: write
    address: [MAIN, 0x7A51500]
    value_type: float
    value: 0.0333333333
35FPS:
  -
    type: write
    address: [MAIN, 0x7A51500]
    value_type: float
    value: 0.028571428
  -
    type: block
    what: timing
40FPS:
  -
    type: write
    address: [MAIN, 0x7A51500]
    value_type: float
    value: 0.025
  -
    type: block
    what: timing
45FPS:
  -
    type: write
    address: [MAIN, 0x7A51500]
    value_type: float
    value: 0.0222222222
  -
    type: block
    what: timing
50FPS:
  -
    type: write
    address: [MAIN, 0x7A51500]
    value_type: float
    value: 0.02
  -
    type: block
    what: timing
55FPS:
  -
    type: write
    address: [MAIN, 0x7A51500]
    value_type: float
    value: 0.0181818181
  -
    type: block
    what: timing
60FPS:
  -
    type: write
    address: [MAIN, 0x7A51500]
    value_type: float
    value: 0.0166666666
