add ScreenTestMode
This commit is contained in:
@@ -194,6 +194,7 @@ PrefsManager::PrefsManager()
|
||||
|
||||
m_bAllowUnacceleratedRenderer = false;
|
||||
m_bThreadedInput = true;
|
||||
m_bScreenTestMode = false;
|
||||
m_sIgnoredMessageWindows = "";
|
||||
|
||||
m_sCoursesToShowRanking = "";
|
||||
@@ -318,6 +319,7 @@ void PrefsManager::ReadGlobalPrefsFromDisk()
|
||||
ini.GetValue( "Options", "ShowSongOptions", (int&)m_ShowSongOptions );
|
||||
ini.GetValue( "Options", "AllowUnacceleratedRenderer", m_bAllowUnacceleratedRenderer );
|
||||
ini.GetValue( "Options", "ThreadedInput", m_bThreadedInput );
|
||||
ini.GetValue( "Options", "ScreenTestMode", m_bScreenTestMode );
|
||||
ini.GetValue( "Options", "IgnoredMessageWindows", m_sIgnoredMessageWindows );
|
||||
ini.GetValue( "Options", "SoloSingle", m_bSoloSingle );
|
||||
ini.GetValue( "Options", "DancePointsForOni", m_bDancePointsForOni );
|
||||
@@ -478,6 +480,7 @@ void PrefsManager::SaveGlobalPrefsToDisk() const
|
||||
ini.SetValue( "Options", "ShowSongOptions", m_ShowSongOptions );
|
||||
ini.SetValue( "Options", "AllowUnacceleratedRenderer", m_bAllowUnacceleratedRenderer );
|
||||
ini.SetValue( "Options", "ThreadedInput", m_bThreadedInput );
|
||||
ini.SetValue( "Options", "ScreenTestMode", m_bScreenTestMode );
|
||||
ini.SetValue( "Options", "IgnoredMessageWindows", m_sIgnoredMessageWindows );
|
||||
ini.SetValue( "Options", "SoloSingle", m_bSoloSingle );
|
||||
ini.SetValue( "Options", "DancePointsForOni", m_bDancePointsForOni );
|
||||
|
||||
@@ -162,6 +162,7 @@ public:
|
||||
int m_iSoundResampleQuality;
|
||||
bool m_bAllowUnacceleratedRenderer;
|
||||
bool m_bThreadedInput;
|
||||
bool m_bScreenTestMode;
|
||||
|
||||
CString m_sIgnoredMessageWindows;
|
||||
|
||||
|
||||
@@ -61,9 +61,7 @@ ScreenNameEntryTraditional::ScreenNameEntryTraditional( CString sClassName ) : S
|
||||
LOG->Trace( "ScreenNameEntryTraditional::ScreenNameEntryTraditional()" );
|
||||
|
||||
|
||||
|
||||
// DEBUGGING STUFF
|
||||
if(0)
|
||||
if( PREFSMAN->m_bScreenTestMode )
|
||||
{
|
||||
GAMESTATE->m_bSideIsJoined[PLAYER_1] = true;
|
||||
GAMESTATE->m_bSideIsJoined[PLAYER_2] = true;
|
||||
|
||||
@@ -1079,7 +1079,12 @@ bool HandleGlobalInputs( DeviceInput DeviceI, InputEventType type, GameInput Gam
|
||||
BOOKKEEPER->WriteToDisk();
|
||||
PROFILEMAN->SaveMachineScoresToDisk();
|
||||
|
||||
/* If we're in screen test mode, reload the screen. */
|
||||
if( PREFSMAN->m_bScreenTestMode )
|
||||
ResetGame( true );
|
||||
else
|
||||
SCREENMAN->SystemMessage( "Reloaded metrics and textures" );
|
||||
|
||||
return true;
|
||||
}
|
||||
#ifndef DARWIN
|
||||
|
||||
Reference in New Issue
Block a user