marinesciencedude / xenia-canary-mousehook

Xbox 360 Emulator Research Project, Mousehook included
https://xenia.jp
Other
27 stars 3 forks source link

Read access violation - address at settings_ptr accessed too early for values to be set #3

Closed marinesciencedude closed 1 year ago

marinesciencedude commented 1 year ago

Validation

Describe what's going wrong

game_addrs.settings_addr for November 2007 Release, 0x83088228 (or 0x183088228 as per TranslateVirtual), points to zero value causing settings_ptr to be set to an address pointing to null value

Seems later canary versions have shifted around some of the loaded memory, not sure how much Cheat Engine can help

Describe what should happen

settings_addr should point to a non-zero value usable for settings_ptr

If applicable, provide a callstack here, especially for crashes

xenia_canary.zip

If applicable, upload a logfile and link it here

xenia.log

marinesciencedude commented 1 year ago

0x183088228 seems to show up values in Cheat Engine with mainline build of xenia canary, no problem there

Instead it seems code fixed during #1 in WinKeyInputDriver::GetState is being executed too early, clearly emulator->is_title_open() as a condition doesn't give a chance for 0x183088228 to be written to