melonDS-emu / melonDS

DS emulator, sorta
https://melonds.kuribo64.net
GNU General Public License v3.0
2.98k stars 495 forks source link

Firmware settings should be respected when UpdateCounter = 0 #1997

Open vitor251093 opened 3 months ago

vitor251093 commented 3 months ago

When both UpdateCounter's values are zero, the first user data is used by the game, but the second one is the one updated with the firmware settings. By switching the logic, userdata[0] is now used when userdata[0].UpdateCounter and userdata[1].UpdateCounter are equal to zero, which fixes the issue.