add ScreenTestMode

This commit is contained in:
Glenn Maynard
2003-12-18 21:16:43 +00:00
parent 3a65e54c6f
commit 2512245332
4 changed files with 43 additions and 36 deletions
+3
View File
@@ -194,6 +194,7 @@ PrefsManager::PrefsManager()
m_bAllowUnacceleratedRenderer = false; m_bAllowUnacceleratedRenderer = false;
m_bThreadedInput = true; m_bThreadedInput = true;
m_bScreenTestMode = false;
m_sIgnoredMessageWindows = ""; m_sIgnoredMessageWindows = "";
m_sCoursesToShowRanking = ""; m_sCoursesToShowRanking = "";
@@ -318,6 +319,7 @@ void PrefsManager::ReadGlobalPrefsFromDisk()
ini.GetValue( "Options", "ShowSongOptions", (int&)m_ShowSongOptions ); ini.GetValue( "Options", "ShowSongOptions", (int&)m_ShowSongOptions );
ini.GetValue( "Options", "AllowUnacceleratedRenderer", m_bAllowUnacceleratedRenderer ); ini.GetValue( "Options", "AllowUnacceleratedRenderer", m_bAllowUnacceleratedRenderer );
ini.GetValue( "Options", "ThreadedInput", m_bThreadedInput ); ini.GetValue( "Options", "ThreadedInput", m_bThreadedInput );
ini.GetValue( "Options", "ScreenTestMode", m_bScreenTestMode );
ini.GetValue( "Options", "IgnoredMessageWindows", m_sIgnoredMessageWindows ); ini.GetValue( "Options", "IgnoredMessageWindows", m_sIgnoredMessageWindows );
ini.GetValue( "Options", "SoloSingle", m_bSoloSingle ); ini.GetValue( "Options", "SoloSingle", m_bSoloSingle );
ini.GetValue( "Options", "DancePointsForOni", m_bDancePointsForOni ); ini.GetValue( "Options", "DancePointsForOni", m_bDancePointsForOni );
@@ -478,6 +480,7 @@ void PrefsManager::SaveGlobalPrefsToDisk() const
ini.SetValue( "Options", "ShowSongOptions", m_ShowSongOptions ); ini.SetValue( "Options", "ShowSongOptions", m_ShowSongOptions );
ini.SetValue( "Options", "AllowUnacceleratedRenderer", m_bAllowUnacceleratedRenderer ); ini.SetValue( "Options", "AllowUnacceleratedRenderer", m_bAllowUnacceleratedRenderer );
ini.SetValue( "Options", "ThreadedInput", m_bThreadedInput ); ini.SetValue( "Options", "ThreadedInput", m_bThreadedInput );
ini.SetValue( "Options", "ScreenTestMode", m_bScreenTestMode );
ini.SetValue( "Options", "IgnoredMessageWindows", m_sIgnoredMessageWindows ); ini.SetValue( "Options", "IgnoredMessageWindows", m_sIgnoredMessageWindows );
ini.SetValue( "Options", "SoloSingle", m_bSoloSingle ); ini.SetValue( "Options", "SoloSingle", m_bSoloSingle );
ini.SetValue( "Options", "DancePointsForOni", m_bDancePointsForOni ); ini.SetValue( "Options", "DancePointsForOni", m_bDancePointsForOni );
+1
View File
@@ -162,6 +162,7 @@ public:
int m_iSoundResampleQuality; int m_iSoundResampleQuality;
bool m_bAllowUnacceleratedRenderer; bool m_bAllowUnacceleratedRenderer;
bool m_bThreadedInput; bool m_bThreadedInput;
bool m_bScreenTestMode;
CString m_sIgnoredMessageWindows; CString m_sIgnoredMessageWindows;
+1 -3
View File
@@ -61,9 +61,7 @@ ScreenNameEntryTraditional::ScreenNameEntryTraditional( CString sClassName ) : S
LOG->Trace( "ScreenNameEntryTraditional::ScreenNameEntryTraditional()" ); LOG->Trace( "ScreenNameEntryTraditional::ScreenNameEntryTraditional()" );
if( PREFSMAN->m_bScreenTestMode )
// DEBUGGING STUFF
if(0)
{ {
GAMESTATE->m_bSideIsJoined[PLAYER_1] = true; GAMESTATE->m_bSideIsJoined[PLAYER_1] = true;
GAMESTATE->m_bSideIsJoined[PLAYER_2] = true; GAMESTATE->m_bSideIsJoined[PLAYER_2] = true;
+5
View File
@@ -1079,7 +1079,12 @@ bool HandleGlobalInputs( DeviceInput DeviceI, InputEventType type, GameInput Gam
BOOKKEEPER->WriteToDisk(); BOOKKEEPER->WriteToDisk();
PROFILEMAN->SaveMachineScoresToDisk(); 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" ); SCREENMAN->SystemMessage( "Reloaded metrics and textures" );
return true; return true;
} }
#ifndef DARWIN #ifndef DARWIN