Fix problem where ScreenHertz was not setting based off of RDB by death-droid

This commit is contained in:
zilmar 2015-02-13 08:39:27 +11:00
parent 17a3561c23
commit 167ceb11b1
2 changed files with 3 additions and 3 deletions

View File

@ -43,8 +43,8 @@ CN64System::CN64System ( CPlugins * Plugins, bool SavesReadOnly ) :
m_RspBroke(true),
m_SyncCount(0)
{
DWORD gameHertz = 60;
if (!g_Settings->LoadDword(Game_ScreenHertz), gameHertz)
DWORD gameHertz = g_Settings->LoadDword(Game_ScreenHertz);
if (gameHertz == 0)
{
gameHertz = (SystemType() == SYSTEM_PAL) ? 50 : 60;
}

View File

@ -148,7 +148,7 @@ void CSettings::AddHowToHandleSetting ()
AddHandler(Rdb_UseHleGfx, new CSettingTypeRomDatabase("HLE GFX",Plugin_UseHleGfx));
AddHandler(Rdb_UseHleAudio, new CSettingTypeRomDatabase("HLE Audio",Plugin_UseHleAudio));
AddHandler(Rdb_LoadRomToMemory, new CSettingTypeRomDatabase("Rom In Memory",false));
AddHandler(Rdb_ScreenHertz, new CSettingTypeRomDatabase("ScreenHertz",60));
AddHandler(Rdb_ScreenHertz, new CSettingTypeRomDatabase("ScreenHertz",0));
AddHandler(Rdb_FuncLookupMode, new CSettingTypeRomDatabase("FuncFind",FuncFind_PhysicalLookup));
AddHandler(Rdb_RegCache, new CSettingTypeRDBYesNo("Reg Cache",true));
AddHandler(Rdb_BlockLinking, new CSettingTypeRDBOnOff("Linking",true));