# Trials Rising 1.0.13
# BID: 283095029A5AB467
# Double buffer is reserved line by line inside class array, so requires ton of patching

unsafeCheck: true

MASTER_WRITE:
  # Force game to use dynamic speed instead of fixed speed
  -
    type: bytes
    main_offset: 0xE7BC90
    value_type: uint32
    value: 0x52800048
  # Redirect DR timing to MAIN + 0x9DBAEB8
  -
    type: bytes
    main_offset: 0xE88250
    value_type: uint32
    value: 
      - 0xD0047988
      - 0xBD4EB900
  # Default value
  -
    type: bytes
    main_offset: 0x9DBAEB8
    value_type: float
    value: 33.3333333333
ALL_FPS:
  # DR timing
  -
    type: evaluate_write
    address: [MAIN, 0x9DBAEB8]
    value_type: float
    value: FRAMETIME_TARGET
