Skip to content

Commit

Permalink
add a preferences.ini option to turn off show skips
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 24, 2017
1 parent ef046bb commit befe017
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/PrefsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ PrefsManager::PrefsManager() :
m_bAllowMultitexture ( "AllowMultitexture", true ),
m_bAllowedLag ("AllowedLag", 0.001f),
m_bShowStats ( "ShowStats", TRUE_IF_DEBUG),
m_bShowSkips ( "ShowSkips", true),
m_bShowBanners ( "ShowBanners", true ),
m_bShowMouseCursor ( "ShowMouseCursor", true ),
m_bVsync ( "Vsync", false ),
Expand Down
1 change: 1 addition & 0 deletions src/PrefsManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ class PrefsManager
Preference<bool> m_bAllowMultitexture;
Preference<float> m_bAllowedLag;
Preference<bool> m_bShowStats;
Preference<bool> m_bShowSkips;
Preference<bool> m_bShowBanners;
Preference<bool> m_bShowMouseCursor;
Preference<bool> m_bVsync;
Expand Down
4 changes: 2 additions & 2 deletions src/ScreenStatsOverlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void ScreenStatsOverlay::Init()
m_LastSkip = 0;

SHOW_SKIPS.Load( m_sName, "ShowSkips" );
if( SHOW_SKIPS )
if( SHOW_SKIPS && PREFSMAN->m_bShowSkips)
{
SKIP_X.Load( m_sName, "SkipX" );
SKIP_Y.Load( m_sName, "SkipY" );
Expand Down Expand Up @@ -78,7 +78,7 @@ void ScreenStatsOverlay::Update( float fDeltaTime )
if( PREFSMAN->m_bShowStats )
{
m_textStats.SetText( DISPLAY->GetStats() );
if ( SHOW_SKIPS )
if ( SHOW_SKIPS && PREFSMAN->m_bShowSkips)
UpdateSkips();
}
}
Expand Down

0 comments on commit befe017

Please sign in to comment.