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

CoreTiming: Pass Core::System to Events. #11253

Merged

Conversation

AdmiralCurtiss
Copy link
Contributor

More steps towards de-globalization.

@@ -270,7 +270,7 @@ void UpdateInterrupts()
ProcessorInterface::SetInterrupt(ProcessorInterface::INT_CAUSE_EXI, causeInt);
}

static void UpdateInterruptsCallback(u64 userdata, s64 cycles_late)
static void UpdateInterruptsCallback(Core::System& system, u64 userdata, s64 cycles_late)
Copy link
Contributor

@iwubcode iwubcode Nov 6, 2022

Choose a reason for hiding this comment

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

Just curious but what was this added for? Consistency I guess?

Copy link
Member

Choose a reason for hiding this comment

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

It won't compile unless the function signature of this callback matches.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can't pass a function pointer unless the signature matches.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you both, hadn't gotten that far in my investigation yet. That makes sense!

@lioncash lioncash merged commit a47ed21 into dolphin-emu:master Nov 23, 2022
11 checks passed
@AdmiralCurtiss AdmiralCurtiss deleted the core-timing-events-pass-system branch November 23, 2022 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants