citra_qt: Allow enabling frame advance before emulation start
Effectively allows starting emulation as paused.
This commit is contained in:
parent
d6b64f6b09
commit
e60e20666e
6 changed files with 24 additions and 6 deletions
|
@ -169,6 +169,10 @@ void FrameLimiter::DoFrameLimiting(microseconds current_system_time_us) {
|
|||
previous_walltime = now;
|
||||
}
|
||||
|
||||
bool FrameLimiter::IsFrameAdvancing() const {
|
||||
return frame_advancing_enabled;
|
||||
}
|
||||
|
||||
void FrameLimiter::SetFrameAdvancing(bool value) {
|
||||
const bool was_enabled = frame_advancing_enabled.exchange(value);
|
||||
if (was_enabled && !value) {
|
||||
|
|
|
@ -90,6 +90,7 @@ public:
|
|||
|
||||
void DoFrameLimiting(std::chrono::microseconds current_system_time_us);
|
||||
|
||||
bool IsFrameAdvancing() const;
|
||||
/**
|
||||
* Sets whether frame advancing is enabled or not.
|
||||
* Note: The frontend must cancel frame advancing before shutting down in order
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue