# The Settlers: New Allies 1.0.7
# BID: EAA0B789264F2A75

unsafeCheck: true

MASTER_WRITE:
  # Redirect FPS Lock to float MAIN+B75F200, frametime and DR target to float MAIN+B75F204
  # REF: 08 14 40 BD 00 10 2E 1E 00 18 28 1E
  -
    type: bytes
    main_offset: 0x36A3F8
    value_type: uint32
    value: 
      - 0xB0059FA8
      - 0xBD420100
      - 0xBD420508
  # REF: 00 14 40 BD 09 10 2E 1E (1 instruction before that)
  -
    type: bytes
    main_offset: 0x34A0EB4
    value_type: uint32
    value: 
      - 0xF00415E0
      - 0xBD420400
  # Default values
  -
    type: bytes
    main_offset: 0xB75F200
    value_type: float
    value: [30, 0.0333333333]
ALL_FPS:
  -
    type: evaluate_write
    address: [MAIN, 0xB75F200]
    value_type: float
    value: [FPS_LOCK_TARGET, "1 / FPS_TARGET"]
