Add m_bVsync.
This commit is contained in:
@@ -53,6 +53,7 @@ PrefsManager::PrefsManager()
|
|||||||
/* I'd rather get occasional people asking for support for this even though it's
|
/* I'd rather get occasional people asking for support for this even though it's
|
||||||
* already here than lots of people asking why songs aren't being displayed. */
|
* already here than lots of people asking why songs aren't being displayed. */
|
||||||
m_bHiddenSongs = false;
|
m_bHiddenSongs = false;
|
||||||
|
m_bVsync = true;
|
||||||
|
|
||||||
ReadGlobalPrefsFromDisk( true );
|
ReadGlobalPrefsFromDisk( true );
|
||||||
}
|
}
|
||||||
@@ -90,6 +91,7 @@ void PrefsManager::ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame )
|
|||||||
ini.GetValueB( "Options", "UseBGIfNoBanner", m_bUseBGIfNoBanner );
|
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 );
|
||||||
|
|
||||||
m_asAdditionalSongFolders.RemoveAll();
|
m_asAdditionalSongFolders.RemoveAll();
|
||||||
CString sAdditionalSongFolders;
|
CString sAdditionalSongFolders;
|
||||||
@@ -130,6 +132,7 @@ void PrefsManager::SaveGlobalPrefsToDisk()
|
|||||||
ini.SetValueB( "Options", "UseBGIfNoBanner", m_bUseBGIfNoBanner );
|
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.SetValue( "Options", "AdditionalSongFolders", join(",", m_asAdditionalSongFolders) );
|
ini.SetValue( "Options", "AdditionalSongFolders", join(",", m_asAdditionalSongFolders) );
|
||||||
|
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ public:
|
|||||||
int m_iMovieDecodeMS;
|
int m_iMovieDecodeMS;
|
||||||
bool m_bUseBGIfNoBanner;
|
bool m_bUseBGIfNoBanner;
|
||||||
bool m_bHiddenSongs;
|
bool m_bHiddenSongs;
|
||||||
|
bool m_bVsync;
|
||||||
|
|
||||||
bool m_bIgnoreJoyAxes;
|
bool m_bIgnoreJoyAxes;
|
||||||
bool m_bOnlyDedicatedMenuButtons;
|
bool m_bOnlyDedicatedMenuButtons;
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ enum {
|
|||||||
GO_BGBRIGHTNESS,
|
GO_BGBRIGHTNESS,
|
||||||
GO_MOVIEDECODEMS,
|
GO_MOVIEDECODEMS,
|
||||||
GO_BGIFNOBANNER,
|
GO_BGIFNOBANNER,
|
||||||
|
GO_VSYNC,
|
||||||
NUM_GRAPHIC_OPTIONS_LINES
|
NUM_GRAPHIC_OPTIONS_LINES
|
||||||
};
|
};
|
||||||
OptionLineData g_GraphicOptionsLines[NUM_GRAPHIC_OPTIONS_LINES] = {
|
OptionLineData g_GraphicOptionsLines[NUM_GRAPHIC_OPTIONS_LINES] = {
|
||||||
@@ -45,6 +46,7 @@ OptionLineData g_GraphicOptionsLines[NUM_GRAPHIC_OPTIONS_LINES] = {
|
|||||||
{ "BG Brightness", 11, {"0%","10%","20%","30%","40%","50%","60%","70%","80%","90%","100%"} },
|
{ "BG Brightness", 11, {"0%","10%","20%","30%","40%","50%","60%","70%","80%","90%","100%"} },
|
||||||
{ "Movie Decode", 4, {"1ms","2ms","3ms","4ms"} },
|
{ "Movie Decode", 4, {"1ms","2ms","3ms","4ms"} },
|
||||||
{ "BG For Banner", 2, {"NO", "YES (slow)"} },
|
{ "BG For Banner", 2, {"NO", "YES (slow)"} },
|
||||||
|
{ "Wait for Vsync", 2, {"NO", "YES"} },
|
||||||
};
|
};
|
||||||
|
|
||||||
static const int HorizRes[] = {
|
static const int HorizRes[] = {
|
||||||
@@ -171,6 +173,7 @@ void ScreenGraphicOptions::ImportOptions()
|
|||||||
m_iSelectedOption[0][GO_BGBRIGHTNESS] = roundf( PREFSMAN->m_fBGBrightness*10 );
|
m_iSelectedOption[0][GO_BGBRIGHTNESS] = roundf( PREFSMAN->m_fBGBrightness*10 );
|
||||||
m_iSelectedOption[0][GO_MOVIEDECODEMS] = PREFSMAN->m_iMovieDecodeMS-1;
|
m_iSelectedOption[0][GO_MOVIEDECODEMS] = PREFSMAN->m_iMovieDecodeMS-1;
|
||||||
m_iSelectedOption[0][GO_BGIFNOBANNER] = PREFSMAN->m_bUseBGIfNoBanner ? 1:0;
|
m_iSelectedOption[0][GO_BGIFNOBANNER] = PREFSMAN->m_bUseBGIfNoBanner ? 1:0;
|
||||||
|
m_iSelectedOption[0][GO_VSYNC] = PREFSMAN->m_bVsync ? 1:0;
|
||||||
}
|
}
|
||||||
void ScreenGraphicOptions::ExportOptions()
|
void ScreenGraphicOptions::ExportOptions()
|
||||||
{
|
{
|
||||||
@@ -213,6 +216,7 @@ void ScreenGraphicOptions::ExportOptions()
|
|||||||
PREFSMAN->m_fBGBrightness = m_iSelectedOption[0][GO_BGBRIGHTNESS] / 10.0f;
|
PREFSMAN->m_fBGBrightness = m_iSelectedOption[0][GO_BGBRIGHTNESS] / 10.0f;
|
||||||
PREFSMAN->m_iMovieDecodeMS = m_iSelectedOption[0][GO_MOVIEDECODEMS]+1;
|
PREFSMAN->m_iMovieDecodeMS = m_iSelectedOption[0][GO_MOVIEDECODEMS]+1;
|
||||||
PREFSMAN->m_bUseBGIfNoBanner = m_iSelectedOption[0][GO_BGIFNOBANNER] == 1;
|
PREFSMAN->m_bUseBGIfNoBanner = m_iSelectedOption[0][GO_BGIFNOBANNER] == 1;
|
||||||
|
PREFSMAN->m_bVsync = m_iSelectedOption[0][GO_VSYNC] == 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenGraphicOptions::GoToPrevState()
|
void ScreenGraphicOptions::GoToPrevState()
|
||||||
|
|||||||
Reference in New Issue
Block a user