Hack in a frame limit toggle on F4 and TAB using a global int. :p

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2012 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
ramapcsx2 2009-10-16 10:45:47 +00:00
parent d2767da7b3
commit d87cc4d250
2 changed files with 7 additions and 2 deletions

View File

@ -284,10 +284,11 @@ void frameLimitReset()
// Framelimiter - Measures the delta time between calls and stalls until a
// certain amount of time passes if such time hasn't passed yet.
// See the GS FrameSkip function for details on why this is here and not in the GS.
extern int limitOn;
static __forceinline void frameLimit()
{
// 999 means the user would rather just have framelimiting turned off...
if( !EmuConfig.Video.EnableFrameLimiting || EmuConfig.Video.FpsLimit >= 999 ) return;
if( /*!EmuConfig.Video.EnableFrameLimiting*/ !limitOn || EmuConfig.Video.FpsLimit >= 999 ) return;
s64 sDeltaTime;
u64 uExpectedEnd;

View File

@ -53,16 +53,20 @@ wxString KeyAcceleratorCode::ToString() const
).ToString();
}
int limitOn = false;
namespace Implementations
{
void Frameskip_Toggle()
{
limitOn ^= 1;
Console.WriteLn("Framelimit mode changed to %d", limitOn ? 1 : 0);
// FIXME : Reimplement framelimiting using new double-switch boolean system
}
void Framelimiter_TurboToggle()
{
limitOn ^= 1;
Console.WriteLn("Framelimit mode changed to %d", limitOn ? 1 : 0);
}
void Framelimiter_MasterToggle()