-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement memory callbacks for the new bsnes core #2797
Implement memory callbacks for the new bsnes core #2797
Conversation
Haven't looked yet, but is the crash just #2585? |
Hmm, you might be right about that. I guess whenever host code was calling core functions before it was never a reentrant call. |
98f8a8f
to
8a20b78
Compare
Have rebased onto #3007; should be in a working state now. |
So this one is ready too? |
now actually work after natt's changes
…ction calls if not
8a20b78
to
fe06b17
Compare
I thought I cherry-picked the right version, welp
|
Basically, everything "works" but the moment a callback gets executed bizhawk crashes. I can not pinpoint what is going on or what is crashing because apparently memory gets corrupted so badly the execution jumps into places it shouldn't be able to.
No idea what's going on or how to fix it, so I'm just putting this here for feedback because it would probably be nice to have this at some point.
Also it's likely libco.
If anyone wants to test, I'm using the
SMW-BizHawk.lua
script from https://github.com/brunovalads/smw-stuff (needs super mario world rom) with theLagmeter
option enabled (which executes get_registers on callback).