# Marvel Ultimate Alliance 3: The Black Order 4.0.1
# BID: E853C44FDF18B88F
# Credits to Hazerou for finding offsets for FPS lock and speed

unsafeCheck: true

MASTER_WRITE:
# Redirect reading DR GPU time factor to MAIN + 0x4FC0E00
  -
    type: bytes
    main_offset: 0x470E80
    value_type: uint32
    value: 
      - 0x90025A89
      - 0xBD4E0122
# Default value (= 0.5 / FPS)
  -
    type: bytes
    main_offset: 0x4FC0E00
    value_type: float
    value: 0.0166666666
ALL_FPS:
  # Internal Vsync (default value)
  -
    type: evaluate_write
    address: [MAIN, 0x45A7410]
    value_type: int32
    value: [VSYNC_TARGET, VSYNC_TARGET]
  # Game Speed = FPS
  -
    type: evaluate_write
    address: [MAIN, 0x45A71F0]
    value_type: float
    value: FPS_TARGET
  # DR GPU time factor
  -
    type: evaluate_write
    address: [MAIN, 0x4FC0E00]
    value_type: float
    value: "0.5 / FPS_TARGET"
