remove m_bUseBGIfNoBanner and m_BannerCacheType

This commit is contained in:
Glenn Maynard
2003-06-23 08:39:34 +00:00
parent dc575db261
commit a026a7d9f6
8 changed files with 0 additions and 41 deletions
-2
View File
@@ -1839,11 +1839,9 @@ RefreshRate=Controls how many times per second the screen will refresh.::This se
MovieDecode=When a movie texture is being used, StepMania will spend this much time::between each frame to decode the next frame of the movie. If your frame rate::is high but movie texures skip, then increase this value. MovieDecode=When a movie texture is being used, StepMania will spend this much time::between each frame to decode the next frame of the movie. If your frame rate::is high but movie texures skip, then increase this value.
WaitForVsync=Wait for the monitor's vertical retrace before displaying::the next frame. This option only has an effect when the::Display Mode is set to &oq;full screen&cq;. Turning this option off will not::cap your frame rate to the refresh rate, but may result in &oq;tearing&cq;. WaitForVsync=Wait for the monitor's vertical retrace before displaying::the next frame. This option only has an effect when the::Display Mode is set to &oq;full screen&cq;. Turning this option off will not::cap your frame rate to the refresh rate, but may result in &oq;tearing&cq;.
KeepTexturesInMemory=Set to ON hold textures in memory instead of::freeing them. This will eliminate the time needed to load::the texture next from disk next time this is needed. Do not set to ON::unless you have 128MB of memory or more. KeepTexturesInMemory=Set to ON hold textures in memory instead of::freeing them. This will eliminate the time needed to load::the texture next from disk next time this is needed. Do not set to ON::unless you have 128MB of memory or more.
BannerLoading=ON DEMAND loads banners when they're displayed, for fast loads.::ALL loads all banners in advance.::GROUP loads banners when opening song groups.
[ScreenGameplayOptions] [ScreenGameplayOptions]
HelpText=&UP; &DOWN; to change line &LEFT; &RIGHT; to select between options::START to accept changes BACK to discard changes HelpText=&UP; &DOWN; to change line &LEFT; &RIGHT; to select between options::START to accept changes BACK to discard changes
BGForBanner=Instead of displaying the banner image in menus, display::the song background instead. Backgrounds can look better::than banners because they are higher resolution, but they::will take longer to load and may result in some &oq;skipping&cq;.
EasterEggs=Enable or disable some special easter eggs. EasterEggs=Enable or disable some special easter eggs.
MarvelousTiming=Enable or disable marvelous judgement. MarvelousTiming=Enable or disable marvelous judgement.
HiddenSongs=Some songs are only playable during Oni courses and::with roulette. Leave this &oq;OFF&cq; to always display all songs. HiddenSongs=Some songs are only playable during Oni courses and::with roulette. Leave this &oq;OFF&cq; to always display all songs.
-1
View File
@@ -85,7 +85,6 @@ void Banner::LoadFromSong( Song* pSong ) // NULL means no song
if( pSong == NULL ) LoadFallback(); if( pSong == NULL ) LoadFallback();
else if( pSong->HasBanner() ) Load( pSong->GetBannerPath() ); else if( pSong->HasBanner() ) Load( pSong->GetBannerPath() );
else if( PREFSMAN->m_bUseBGIfNoBanner && pSong->HasBackground() ) Load( pSong->GetBackgroundPath() );
else LoadFallback(); else LoadFallback();
m_bScrolling = false; m_bScrolling = false;
-4
View File
@@ -139,7 +139,6 @@ void MusicBannerWheel::InsertNewBanner(int direction)
if( pSong == NULL ) sGraphicPath = (THEME->GetPathToG("Common fallback banner")); if( pSong == NULL ) sGraphicPath = (THEME->GetPathToG("Common fallback banner"));
else if (pSong->HasBanner()) sGraphicPath = (pSong->GetBannerPath()); else if (pSong->HasBanner()) sGraphicPath = (pSong->GetBannerPath());
else if (PREFSMAN->m_bUseBGIfNoBanner && pSong->HasBackground() ) sGraphicPath = (pSong->GetBackgroundPath());
else sGraphicPath = (THEME->GetPathToG("Common fallback banner")); else sGraphicPath = (THEME->GetPathToG("Common fallback banner"));
elementtoreplace = scrlistPos - 2; elementtoreplace = scrlistPos - 2;
@@ -166,7 +165,6 @@ void MusicBannerWheel::InsertNewBanner(int direction)
if( pSong == NULL ) sGraphicPath = (THEME->GetPathToG("Common fallback banner")); if( pSong == NULL ) sGraphicPath = (THEME->GetPathToG("Common fallback banner"));
else if (pSong->HasBanner()) sGraphicPath = (pSong->GetBannerPath()); else if (pSong->HasBanner()) sGraphicPath = (pSong->GetBannerPath());
else if (PREFSMAN->m_bUseBGIfNoBanner && pSong->HasBackground() ) sGraphicPath = (pSong->GetBackgroundPath());
else sGraphicPath = (THEME->GetPathToG("Common fallback banner")); else sGraphicPath = (THEME->GetPathToG("Common fallback banner"));
elementtoreplace = scrlistPos + 2; elementtoreplace = scrlistPos + 2;
@@ -218,7 +216,6 @@ void MusicBannerWheel::LoadSongData()
if( pSong == NULL ) asGraphicPaths.push_back(THEME->GetPathToG("Common fallback banner")); if( pSong == NULL ) asGraphicPaths.push_back(THEME->GetPathToG("Common fallback banner"));
else if (pSong->HasBanner()) asGraphicPaths.push_back(pSong->GetBannerPath()); else if (pSong->HasBanner()) asGraphicPaths.push_back(pSong->GetBannerPath());
else if (PREFSMAN->m_bUseBGIfNoBanner && pSong->HasBackground() ) asGraphicPaths.push_back(pSong->GetBackgroundPath());
else asGraphicPaths.push_back(THEME->GetPathToG("Common fallback banner")); else asGraphicPaths.push_back(THEME->GetPathToG("Common fallback banner"));
} }
} }
@@ -270,7 +267,6 @@ void MusicBannerWheel::LoadSongData()
if( pSong == NULL ) asGraphicPaths.push_back(THEME->GetPathToG("Common fallback banner")); if( pSong == NULL ) asGraphicPaths.push_back(THEME->GetPathToG("Common fallback banner"));
else if (pSong->HasBanner()) asGraphicPaths.push_back(pSong->GetBannerPath()); else if (pSong->HasBanner()) asGraphicPaths.push_back(pSong->GetBannerPath());
else if (PREFSMAN->m_bUseBGIfNoBanner && pSong->HasBackground() ) asGraphicPaths.push_back(pSong->GetBackgroundPath());
else asGraphicPaths.push_back(THEME->GetPathToG("Common fallback banner")); else asGraphicPaths.push_back(THEME->GetPathToG("Common fallback banner"));
} }
} }
-16
View File
@@ -531,16 +531,6 @@ void MusicWheel::BuildWheelItemDatas( vector<WheelItemData> &arrayWheelItemDatas
ASSERT(0); // invalid PlayMode ASSERT(0); // invalid PlayMode
} }
if(PREFSMAN->m_BannerCacheType == PREFSMAN->preload_all)
{
for( i=0; i<arrayWheelItemDatas.size(); i++ )
{
WheelItemData& WID = arrayWheelItemDatas[i];
if(WID.HasBanner())
TEXTUREMAN->CacheTexture( Banner::BannerTex(WID.GetBanner()) );
}
}
// init music status icons // init music status icons
for( i=0; i<arrayWheelItemDatas.size(); i++ ) for( i=0; i<arrayWheelItemDatas.size(); i++ )
{ {
@@ -1114,12 +1104,6 @@ void MusicWheel::SetOpenGroup(CString group, SongSortOrder so)
from[i].m_sSectionName != group) from[i].m_sSectionName != group)
continue; continue;
m_CurWheelItemData.push_back(&from[i]); m_CurWheelItemData.push_back(&from[i]);
//
// cache banners
//
// if(from[i].HasBanner() && PREFSMAN->m_BannerCacheType == PREFSMAN->preload_group)
// TEXTUREMAN->CacheTexture( Banner::BannerTex(from[i].GetBanner()) );
} }
-6
View File
@@ -66,7 +66,6 @@ PrefsManager::PrefsManager()
m_fJudgeWindowOKSeconds = 0.250f; // allow enough time to take foot off and put back on m_fJudgeWindowOKSeconds = 0.250f; // allow enough time to take foot off and put back on
m_fLifeDifficultyScale = 1.0f; m_fLifeDifficultyScale = 1.0f;
m_iMovieDecodeMS = 2; m_iMovieDecodeMS = 2;
m_bUseBGIfNoBanner = false;
m_bDelayedEscape = true; m_bDelayedEscape = true;
m_bInstructions = true; m_bInstructions = true;
m_bShowDontDie = true; m_bShowDontDie = true;
@@ -94,7 +93,6 @@ PrefsManager::PrefsManager()
m_bAutogenGroupCourses = true; m_bAutogenGroupCourses = true;
m_bBreakComboToGetItem = false; m_bBreakComboToGetItem = false;
m_bShowDancingCharacters = false; m_bShowDancingCharacters = false;
m_BannerCacheType = preload_none;
m_fDancePointsAccumulated = 0; m_fDancePointsAccumulated = 0;
m_bUseUnlockSystem = false; m_bUseUnlockSystem = false;
m_bFirstRun = true; m_bFirstRun = true;
@@ -170,7 +168,6 @@ void PrefsManager::ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame )
ini.GetValueF( "Options", "JudgeWindowOKSeconds", m_fJudgeWindowOKSeconds ); ini.GetValueF( "Options", "JudgeWindowOKSeconds", m_fJudgeWindowOKSeconds );
ini.GetValueF( "Options", "LifeDifficultyScale", m_fLifeDifficultyScale ); ini.GetValueF( "Options", "LifeDifficultyScale", m_fLifeDifficultyScale );
ini.GetValueI( "Options", "MovieDecodeMS", m_iMovieDecodeMS ); ini.GetValueI( "Options", "MovieDecodeMS", m_iMovieDecodeMS );
ini.GetValueB( "Options", "UseBGIfNoBanner", m_bUseBGIfNoBanner );
ini.GetValueB( "Options", "DelayedEscape", m_bDelayedEscape ); ini.GetValueB( "Options", "DelayedEscape", m_bDelayedEscape );
ini.GetValueB( "Options", "HiddenSongs", m_bHiddenSongs ); ini.GetValueB( "Options", "HiddenSongs", m_bHiddenSongs );
ini.GetValueB( "Options", "Vsync", m_bVsync ); ini.GetValueB( "Options", "Vsync", m_bVsync );
@@ -208,7 +205,6 @@ void PrefsManager::ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame )
ini.GetValue ( "Options", "DefaultModifiers", m_sDefaultModifiers ); ini.GetValue ( "Options", "DefaultModifiers", m_sDefaultModifiers );
ini.GetValueB( "Options", "BreakComboToGetItem", m_bBreakComboToGetItem ); ini.GetValueB( "Options", "BreakComboToGetItem", m_bBreakComboToGetItem );
ini.GetValueB( "Options", "ShowDancingCharacters", m_bShowDancingCharacters ); ini.GetValueB( "Options", "ShowDancingCharacters", m_bShowDancingCharacters );
// ini.GetValueI( "Options", "BannerCacheType", (int&)m_BannerCacheType );
/* XXX: This belongs in the memcard code, not prefs. */ /* XXX: This belongs in the memcard code, not prefs. */
ini.GetValueF( "Options", "DancePointsAccumulated", m_fDancePointsAccumulated ); ini.GetValueF( "Options", "DancePointsAccumulated", m_fDancePointsAccumulated );
ini.GetValueB( "Options", "UseUnlockSystem", m_bUseUnlockSystem ); ini.GetValueB( "Options", "UseUnlockSystem", m_bUseUnlockSystem );
@@ -267,7 +263,6 @@ void PrefsManager::SaveGlobalPrefsToDisk()
ini.SetValueF( "Options", "JudgeWindowOKSeconds", m_fJudgeWindowOKSeconds ); ini.SetValueF( "Options", "JudgeWindowOKSeconds", m_fJudgeWindowOKSeconds );
ini.SetValueF( "Options", "LifeDifficultyScale", m_fLifeDifficultyScale ); ini.SetValueF( "Options", "LifeDifficultyScale", m_fLifeDifficultyScale );
ini.SetValueI( "Options", "MovieDecodeMS", m_iMovieDecodeMS ); ini.SetValueI( "Options", "MovieDecodeMS", m_iMovieDecodeMS );
ini.SetValueB( "Options", "UseBGIfNoBanner", m_bUseBGIfNoBanner );
ini.SetValueB( "Options", "DelayedEscape", m_bDelayedEscape ); ini.SetValueB( "Options", "DelayedEscape", m_bDelayedEscape );
ini.SetValueB( "Options", "HiddenSongs", m_bHiddenSongs ); ini.SetValueB( "Options", "HiddenSongs", m_bHiddenSongs );
ini.SetValueB( "Options", "Vsync", m_bVsync ); ini.SetValueB( "Options", "Vsync", m_bVsync );
@@ -303,7 +298,6 @@ void PrefsManager::SaveGlobalPrefsToDisk()
ini.SetValue ( "Options", "DefaultModifiers", m_sDefaultModifiers ); ini.SetValue ( "Options", "DefaultModifiers", m_sDefaultModifiers );
ini.SetValueB( "Options", "BreakComboToGetItem", m_bBreakComboToGetItem ); ini.SetValueB( "Options", "BreakComboToGetItem", m_bBreakComboToGetItem );
ini.SetValueB( "Options", "ShowDancingCharacters", m_bShowDancingCharacters ); ini.SetValueB( "Options", "ShowDancingCharacters", m_bShowDancingCharacters );
// ini.SetValueI( "Options", "BannerCacheType", m_BannerCacheType );
ini.SetValueF( "Options", "DancePointsAccumulated", m_fDancePointsAccumulated ); ini.SetValueF( "Options", "DancePointsAccumulated", m_fDancePointsAccumulated );
ini.SetValueB( "Options", "UseUnlockSystem", m_bUseUnlockSystem ); ini.SetValueB( "Options", "UseUnlockSystem", m_bUseUnlockSystem );
ini.SetValueB( "Options", "FirstRun", m_bFirstRun ); ini.SetValueB( "Options", "FirstRun", m_bFirstRun );
-4
View File
@@ -31,7 +31,6 @@ public:
int m_iNumBackgrounds; int m_iNumBackgrounds;
float m_fBGBrightness; float m_fBGBrightness;
int m_iMovieDecodeMS; int m_iMovieDecodeMS;
bool m_bUseBGIfNoBanner;
bool m_bHiddenSongs; bool m_bHiddenSongs;
bool m_bVsync; bool m_bVsync;
bool m_bDelayedTextureDelete; bool m_bDelayedTextureDelete;
@@ -100,9 +99,6 @@ public:
bool m_bSoundPreloadAll; bool m_bSoundPreloadAll;
bool m_bAllowUnacceleratedRenderer; bool m_bAllowUnacceleratedRenderer;
enum BannerCacheType { preload_none, preload_all, preload_group };
BannerCacheType m_BannerCacheType;
/* Game-specific prefs: */ /* Game-specific prefs: */
CString m_sDefaultNoteSkin; CString m_sDefaultNoteSkin;
-4
View File
@@ -24,7 +24,6 @@
enum { enum {
GO_BGIFNOBANNER,
GO_SOLO_SINGLE, GO_SOLO_SINGLE,
GO_HIDDEN_SONGS, GO_HIDDEN_SONGS,
GO_EASTER_EGGS, GO_EASTER_EGGS,
@@ -35,7 +34,6 @@ enum {
}; };
OptionRow g_GameplayOptionsLines[NUM_GAMEPLAY_OPTIONS_LINES] = { OptionRow g_GameplayOptionsLines[NUM_GAMEPLAY_OPTIONS_LINES] = {
OptionRow( "BG For\nBanner", "NO", "YES (slow)" ),
OptionRow( "Solo\nSingles", "OFF","ON" ), OptionRow( "Solo\nSingles", "OFF","ON" ),
OptionRow( "Hidden\nSongs", "OFF","ON" ), OptionRow( "Hidden\nSongs", "OFF","ON" ),
OptionRow( "Easter\nEggs", "OFF","ON" ), OptionRow( "Easter\nEggs", "OFF","ON" ),
@@ -61,7 +59,6 @@ ScreenGameplayOptions::ScreenGameplayOptions() :
void ScreenGameplayOptions::ImportOptions() void ScreenGameplayOptions::ImportOptions()
{ {
m_iSelectedOption[0][GO_BGIFNOBANNER] = PREFSMAN->m_bUseBGIfNoBanner ? 1:0;
m_iSelectedOption[0][GO_SOLO_SINGLE] = PREFSMAN->m_bSoloSingle ? 1:0; m_iSelectedOption[0][GO_SOLO_SINGLE] = PREFSMAN->m_bSoloSingle ? 1:0;
m_iSelectedOption[0][GO_HIDDEN_SONGS] = PREFSMAN->m_bHiddenSongs ? 1:0; m_iSelectedOption[0][GO_HIDDEN_SONGS] = PREFSMAN->m_bHiddenSongs ? 1:0;
m_iSelectedOption[0][GO_EASTER_EGGS] = PREFSMAN->m_bEasterEggs ? 1:0; m_iSelectedOption[0][GO_EASTER_EGGS] = PREFSMAN->m_bEasterEggs ? 1:0;
@@ -72,7 +69,6 @@ void ScreenGameplayOptions::ImportOptions()
void ScreenGameplayOptions::ExportOptions() void ScreenGameplayOptions::ExportOptions()
{ {
PREFSMAN->m_bUseBGIfNoBanner = m_iSelectedOption[0][GO_BGIFNOBANNER] == 1;
PREFSMAN->m_bSoloSingle = m_iSelectedOption[0][GO_SOLO_SINGLE] == 1; PREFSMAN->m_bSoloSingle = m_iSelectedOption[0][GO_SOLO_SINGLE] == 1;
PREFSMAN->m_bHiddenSongs = m_iSelectedOption[0][GO_HIDDEN_SONGS] == 1; PREFSMAN->m_bHiddenSongs = m_iSelectedOption[0][GO_HIDDEN_SONGS] == 1;
PREFSMAN->m_bEasterEggs = m_iSelectedOption[0][GO_EASTER_EGGS] == 1; PREFSMAN->m_bEasterEggs = m_iSelectedOption[0][GO_EASTER_EGGS] == 1;
-4
View File
@@ -32,7 +32,6 @@ enum {
GO_REFRESH_RATE, GO_REFRESH_RATE,
GO_MOVIEDECODEMS, GO_MOVIEDECODEMS,
GO_VSYNC, GO_VSYNC,
// GO_PRELOAD_BANNERS,
NUM_GRAPHIC_OPTIONS_LINES NUM_GRAPHIC_OPTIONS_LINES
}; };
OptionRow g_GraphicOptionsLines[NUM_GRAPHIC_OPTIONS_LINES] = { OptionRow g_GraphicOptionsLines[NUM_GRAPHIC_OPTIONS_LINES] = {
@@ -45,7 +44,6 @@ OptionRow g_GraphicOptionsLines[NUM_GRAPHIC_OPTIONS_LINES] = {
OptionRow( "Refresh\nRate", "DEFAULT","60","70","72","75","80","85","90","100","120","150" ), OptionRow( "Refresh\nRate", "DEFAULT","60","70","72","75","80","85","90","100","120","150" ),
OptionRow( "Movie\nDecode", "1ms","2ms","3ms","4ms" ), OptionRow( "Movie\nDecode", "1ms","2ms","3ms","4ms" ),
OptionRow( "Wait For\nVsync", "NO", "YES" ), OptionRow( "Wait For\nVsync", "NO", "YES" ),
// OptionRow( "Banner\nLoading", "ON DEMAND", "ALL", "GROUP" ),
}; };
static const int HorizRes[] = { static const int HorizRes[] = {
@@ -124,7 +122,6 @@ void ScreenGraphicOptions::ImportOptions()
m_iSelectedOption[0][GO_MOVIEDECODEMS] = PREFSMAN->m_iMovieDecodeMS-1; m_iSelectedOption[0][GO_MOVIEDECODEMS] = PREFSMAN->m_iMovieDecodeMS-1;
m_iSelectedOption[0][GO_VSYNC] = PREFSMAN->m_bVsync ? 1:0; m_iSelectedOption[0][GO_VSYNC] = PREFSMAN->m_bVsync ? 1:0;
// m_iSelectedOption[0][GO_PRELOAD_BANNERS] = PREFSMAN->m_BannerCacheType;
} }
void ScreenGraphicOptions::ExportOptions() void ScreenGraphicOptions::ExportOptions()
@@ -167,7 +164,6 @@ void ScreenGraphicOptions::ExportOptions()
PREFSMAN->m_iMovieDecodeMS = m_iSelectedOption[0][GO_MOVIEDECODEMS]+1; PREFSMAN->m_iMovieDecodeMS = m_iSelectedOption[0][GO_MOVIEDECODEMS]+1;
PREFSMAN->m_bVsync = m_iSelectedOption[0][GO_VSYNC] == 1; PREFSMAN->m_bVsync = m_iSelectedOption[0][GO_VSYNC] == 1;
// PREFSMAN->m_BannerCacheType = (PrefsManager::BannerCacheType) m_iSelectedOption[0][GO_PRELOAD_BANNERS];
} }
void ScreenGraphicOptions::GoToPrevState() void ScreenGraphicOptions::GoToPrevState()