From 8483811b398f9156a08565825cbf138cb3697039 Mon Sep 17 00:00:00 2001 From: degasus Date: Sun, 16 Feb 2014 23:13:01 +0100 Subject: Add a hotkey for disabling the framelimit. Atm this is hardcoded to '\t'. --- Source/Core/AudioCommon/Mixer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/AudioCommon/Mixer.cpp') diff --git a/Source/Core/AudioCommon/Mixer.cpp b/Source/Core/AudioCommon/Mixer.cpp index fa43baeb99..83bdc537ed 100644 --- a/Source/Core/AudioCommon/Mixer.cpp +++ b/Source/Core/AudioCommon/Mixer.cpp @@ -7,7 +7,7 @@ #include "Common/Atomic.h" #include "Common/CPUDetect.h" #include "Core/ConfigManager.h" -#include "Core/Host.h" +#include "Core/Core.h" #include "Core/HW/AudioInterface.h" #include "Core/HW/VideoInterface.h" @@ -124,7 +124,7 @@ void CMixer::PushSamples(const short *samples, unsigned int num_samples) if (*PowerPC::GetStatePtr() != PowerPC::CPU_RUNNING || soundStream->IsMuted()) break; // Shortcut key for Throttle Skipping - if (Host_GetKeyState('\t')) + if (Core::IsFramelimiterTempDisabled) break; SLEEP(1); soundStream->Update(); -- cgit v1.2.3 From 30586f4d29537835b4a06b52e3c6f23a9e8c2c29 Mon Sep 17 00:00:00 2001 From: degasus Date: Wed, 30 Apr 2014 12:50:29 +0200 Subject: Add set/get functions for IsFramelimiterTempDisabled --- Source/Core/AudioCommon/Mixer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/AudioCommon/Mixer.cpp') diff --git a/Source/Core/AudioCommon/Mixer.cpp b/Source/Core/AudioCommon/Mixer.cpp index 83bdc537ed..c1ff49dd03 100644 --- a/Source/Core/AudioCommon/Mixer.cpp +++ b/Source/Core/AudioCommon/Mixer.cpp @@ -124,7 +124,7 @@ void CMixer::PushSamples(const short *samples, unsigned int num_samples) if (*PowerPC::GetStatePtr() != PowerPC::CPU_RUNNING || soundStream->IsMuted()) break; // Shortcut key for Throttle Skipping - if (Core::IsFramelimiterTempDisabled) + if (Core::GetIsFramelimiterTempDisabled()) break; SLEEP(1); soundStream->Update(); -- cgit v1.2.3