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_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 );
+1
View File
@@ -162,6 +162,7 @@ public:
int m_iSoundResampleQuality;
bool m_bAllowUnacceleratedRenderer;
bool m_bThreadedInput;
bool m_bScreenTestMode;
CString m_sIgnoredMessageWindows;
+33 -35
View File
@@ -61,44 +61,42 @@ 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;
GAMESTATE->m_MasterPlayerNumber = PLAYER_1;
GAMESTATE->m_PlayMode = PLAY_MODE_ARCADE;
GAMESTATE->m_CurStyle = STYLE_DANCE_VERSUS;
StageStats st;
for( int z = 0; z < 3; ++z )
{
st.pSong = SONGMAN->GetRandomSong();
ASSERT( st.pSong );
ASSERT( st.pSong->m_apNotes.size() );
for( int i = 0; i < 2; ++i )
{
GAMESTATE->m_pCurNotes[i] = st.pSteps[i] = st.pSong->m_apNotes[0];
st.iPossibleDancePoints[i] = 1000;
st.iActualDancePoints[i] = 985;
Steps::MemCardData::HighScore hs;
hs.grade = GRADE_A;
hs.iScore = 42;
int a, b;
GAMESTATE->m_pCurNotes[i]->AddHighScore( (PlayerNumber)i, hs, a,b );
if( i == 0 )
GAMESTATE->m_bSideIsJoined[PLAYER_1] = true;
GAMESTATE->m_bSideIsJoined[PLAYER_2] = true;
GAMESTATE->m_MasterPlayerNumber = PLAYER_1;
GAMESTATE->m_PlayMode = PLAY_MODE_ARCADE;
GAMESTATE->m_CurStyle = STYLE_DANCE_VERSUS;
StageStats st;
for( int z = 0; z < 3; ++z )
{
ProfileManager::CategoryData::HighScore hs;
hs.iScore = 1234567;
StepsType nt = GAMESTATE->GetCurrentStyleDef()->m_StepsType;
PROFILEMAN->AddHighScore( nt, RANKING_A, (PlayerNumber)i, hs, a );
}
}
st.pSong = SONGMAN->GetRandomSong();
ASSERT( st.pSong );
ASSERT( st.pSong->m_apNotes.size() );
for( int i = 0; i < 2; ++i )
{
GAMESTATE->m_pCurNotes[i] = st.pSteps[i] = st.pSong->m_apNotes[0];
st.iPossibleDancePoints[i] = 1000;
st.iActualDancePoints[i] = 985;
GAMESTATE->m_vPlayedStageStats.push_back( st );
}
Steps::MemCardData::HighScore hs;
hs.grade = GRADE_A;
hs.iScore = 42;
int a, b;
GAMESTATE->m_pCurNotes[i]->AddHighScore( (PlayerNumber)i, hs, a,b );
if( i == 0 )
{
ProfileManager::CategoryData::HighScore hs;
hs.iScore = 1234567;
StepsType nt = GAMESTATE->GetCurrentStyleDef()->m_StepsType;
PROFILEMAN->AddHighScore( nt, RANKING_A, (PlayerNumber)i, hs, a );
}
}
GAMESTATE->m_vPlayedStageStats.push_back( st );
}
}
+6 -1
View File
@@ -1079,7 +1079,12 @@ bool HandleGlobalInputs( DeviceInput DeviceI, InputEventType type, GameInput Gam
BOOKKEEPER->WriteToDisk();
PROFILEMAN->SaveMachineScoresToDisk();
SCREENMAN->SystemMessage( "Reloaded metrics and textures" );
/* 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