diff options
| author | hrydgard <hrydgard@gmail.com> | 2010-06-04 20:03:03 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2010-06-04 20:03:03 +0000 |
| commit | 12a4c25e9fed936c6244ff4b42fce1af2597a0bf (patch) | |
| tree | 5ae154975291b3f3dc38430015045d8df71cd11c /Source/Core/VideoCommon/Src/VideoConfig.cpp | |
| parent | 05c418ebe2da24a8df4ef2c1d1d7864eb2d806e3 (diff) | |
Port InputPluginCommon to use the original IniFile code, get rid of Billiard's.
a few minor warning/compile fixes.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5604 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/VideoConfig.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/VideoConfig.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/Source/Core/VideoCommon/Src/VideoConfig.cpp b/Source/Core/VideoCommon/Src/VideoConfig.cpp index a956a53cf2..0b97e604a2 100644 --- a/Source/Core/VideoCommon/Src/VideoConfig.cpp +++ b/Source/Core/VideoCommon/Src/VideoConfig.cpp @@ -113,37 +113,37 @@ void VideoConfig::GameIniLoad(const char *ini_file) iniFile.Load(ini_file); if (iniFile.Exists("Video", "ForceFiltering")) - iniFile.Get("Video", "ForceFiltering", &bForceFiltering, 0); + iniFile.Get("Video", "ForceFiltering", &bForceFiltering); if (iniFile.Exists("Video", "MaxAnisotropy")) - iniFile.Get("Video", "MaxAnisotropy", &iMaxAnisotropy, 3); // NOTE - this is x in (1 << x) + iniFile.Get("Video", "MaxAnisotropy", &iMaxAnisotropy); // NOTE - this is x in (1 << x) if (iniFile.Exists("Video", "EFBCopyDisable")) - iniFile.Get("Video", "EFBCopyDisable", &bEFBCopyDisable, 0); + iniFile.Get("Video", "EFBCopyDisable", &bEFBCopyDisable); if (iniFile.Exists("Video", "EFBCopyDisableHotKey")) - iniFile.Get("Video", "EFBCopyDisableHotKey", &bOSDHotKey, 0); + iniFile.Get("Video", "EFBCopyDisableHotKey", &bOSDHotKey); if (iniFile.Exists("Video", "EFBToTextureEnable")) - iniFile.Get("Video", "EFBToTextureEnable", &bCopyEFBToTexture, 0); + iniFile.Get("Video", "EFBToTextureEnable", &bCopyEFBToTexture); if (iniFile.Exists("Video", "EFBScaledCopy")) - iniFile.Get("Video", "EFBScaledCopy", &bCopyEFBScaled, 0); + iniFile.Get("Video", "EFBScaledCopy", &bCopyEFBScaled); if (iniFile.Exists("Video", "SafeTextureCache")) - iniFile.Get("Video", "SafeTextureCache", &bSafeTextureCache, false); + iniFile.Get("Video", "SafeTextureCache", &bSafeTextureCache); //Safe texture cache params if (iniFile.Exists("Video", "SafeTextureCacheColorSamples")) - iniFile.Get("Video", "SafeTextureCacheColorSamples", &iSafeTextureCache_ColorSamples,512); + iniFile.Get("Video", "SafeTextureCacheColorSamples", &iSafeTextureCache_ColorSamples); if (iniFile.Exists("Video", "MSAA")) - iniFile.Get("Video", "MSAA", &iMultisampleMode, 0); + iniFile.Get("Video", "MSAA", &iMultisampleMode); if (iniFile.Exists("Video", "DstAlphaPass")) - iniFile.Get("Video", "DstAlphaPass", &bDstAlphaPass, false); + iniFile.Get("Video", "DstAlphaPass", &bDstAlphaPass); if (iniFile.Exists("Video", "UseXFB")) - iniFile.Get("Video", "UseXFB", &bUseXFB, 0); + iniFile.Get("Video", "UseXFB", &bUseXFB); if (iniFile.Exists("Video", "UseRealXFB")) - iniFile.Get("Video", "UseRealXFB", &bUseRealXFB, 0); + iniFile.Get("Video", "UseRealXFB", &bUseRealXFB); if (iniFile.Exists("Video", "FIFOBPHack")) - iniFile.Get("Video", "FIFOBPHack", &bFIFOBPhack, false); + iniFile.Get("Video", "FIFOBPHack", &bFIFOBPhack); if (iniFile.Exists("Video", "ProjectionHack")) - iniFile.Get("Video", "ProjectionHack", &iPhackvalue, 0); + iniFile.Get("Video", "ProjectionHack", &iPhackvalue); if (iniFile.Exists("Video", "UseNativeMips")) - iniFile.Get("Video", "UseNativeMips", &bUseNativeMips, true); + iniFile.Get("Video", "UseNativeMips", &bUseNativeMips); } void VideoConfig::Save(const char *ini_file) |
