Archipelago/data
zig-for 3bf86cd8f0
LADX: Fix getting old items over and over again in Bizhawk (#2011)
There was a bug that randomly after opening and closing the menu, some players on Bizhawk would get old items again. Tracking this down took multiple hours over the course of several weeks. The root cause turned out to be reading from the System Bus domain while an DMA copy was happening. Doing so is undefined behavior on GBC (though I'm sure some game relies on it). On Gambatte, you end up reading some garbage byte no matter what the read is (unsure what the providence of the byte is - some garbage, some register, the actual DMA data, who knows?). Normally, this isn't an issue, as Bizhawk callbacks only happen during vblank/halt, which is generally a state where we have valid WRAM to read from. However - a setting is being passed around the community for Bizhawk that changes the frame counter to go from "only when Vblank happens" to "whenever some number of audio samples have happened" which causes the bizhawk callbacks to happen....nearly whenever. Including during a DMA. You can tell this is happening if you print the `PC` register when reading memory - if it matches `FFXX` then you are executing in a routine in HRAM and likely doing a DMA.

Additionally, the check items counter specifically is in WRAM Bank 1 which could be swapped out of - will have to keep an eye on this - generally LADX lives in Bank 1, but there are a few things that use the other banks (swap space for some objects??). This could be a problem on any platform - if we get more reports of bad items gets, that's probably why.

Also, fixes some logging that was never getting reenabled.
2023-07-27 16:08:14 +02:00
..
lua LADX: Fix getting old items over and over again in Bizhawk (#2011) 2023-07-27 16:08:14 +02:00
sprites Links Awakening: Implement New Game (#1334) 2023-03-20 17:26:03 +01:00
tiles Add Vanilla tile order 2020-12-22 20:05:19 -08:00
adventure_basepatch.bsdiff4 Adventure: implement new game (#1531) 2023-03-22 15:25:55 +01:00
basepatch.bsdiff4 Core remove legacy patch (#1047) 2022-09-30 00:36:30 +02:00
client.kv kvui: limit UI side logs to by default 1000 messages 2023-02-13 09:02:19 +01:00
default.apsprite remove remaining sprite data 2021-04-27 07:19:53 +02:00
discord-mark-blue.png Launcher: add icons where present and add headers to table 2023-04-20 05:59:49 +02:00
icon.ico Update AP icons (#1637) 2023-04-04 23:38:23 -05:00
icon.png Asset: make icon 512 x 512 (#1710) 2023-04-15 10:37:31 -05:00
mcicon.ico - change minecraft clients icon. 2021-08-14 23:05:15 +00:00
mcicon.png Launcher: fix loading of mcicon (#1779) 2023-04-30 18:10:58 +02:00
options.yaml Launcher: add Discord links and generate yamls (#1716) 2023-04-16 01:57:52 +02:00