Skip to content
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

Qt/Debugger: Refresh on savestate load. #8745

Merged

Conversation

AdmiralCurtiss
Copy link
Contributor

@AdmiralCurtiss AdmiralCurtiss commented Apr 14, 2020

Pretty self-explanatory. The debugger windows would show stale data after a savestate load when the emulator was in a paused state.

I'm not sure if this is a good place to put the SavestateLoaded signal, but the EmulationStateChanged is already there so... maybe? See comments below.

@AdmiralCurtiss
Copy link
Contributor Author

Looking at this a bit more, maybe we should just emit a Host::UpdateDisasmDialog instead when the savestate callback fires and then register that in all the debugger windows where it isn't yet? Unless we specifically need the savestate event for something else.

@AdmiralCurtiss
Copy link
Contributor Author

Yeah I think this is better. This also fixes various windows (most noticeably the Memory window) not updating when stepping code.

Host::Host() = default;
Host::Host()
{
State::SetOnAfterLoadCallback([this] { Host_UpdateDisasmDialog(); });
Copy link
Member

@leoetlino leoetlino Apr 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this was lost during the move to Qt, heh. SetOnAfterLoadCallback is unused in master.

@leoetlino leoetlino merged commit bab0415 into dolphin-emu:master Apr 27, 2020
@AdmiralCurtiss AdmiralCurtiss deleted the savestate-load-callback-qt branch April 27, 2020 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants