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/VideoCommon/VideoConfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/VideoConfig.cpp') diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp index c12fe9b419..7eb6835747 100644 --- a/Source/Core/VideoCommon/VideoConfig.cpp +++ b/Source/Core/VideoCommon/VideoConfig.cpp @@ -276,5 +276,5 @@ void VideoConfig::Save(const std::string& ini_file) bool VideoConfig::IsVSync() { - return Core::isTabPressed ? false : bVSync; + return Core::IsFramelimiterTempDisabled ? false : bVSync; } -- 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/VideoCommon/VideoConfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/VideoConfig.cpp') diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp index 7eb6835747..7adecfdebf 100644 --- a/Source/Core/VideoCommon/VideoConfig.cpp +++ b/Source/Core/VideoCommon/VideoConfig.cpp @@ -276,5 +276,5 @@ void VideoConfig::Save(const std::string& ini_file) bool VideoConfig::IsVSync() { - return Core::IsFramelimiterTempDisabled ? false : bVSync; + return bVSync && !Core::GetIsFramelimiterTempDisabled(); } -- cgit v1.2.3