2013-04-18 03:09:55 +00:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 05:25:12 +00:00
|
|
|
|
2009-09-13 08:21:35 +00:00
|
|
|
#include <cmath>
|
|
|
|
|
2014-02-17 10:18:15 +00:00
|
|
|
#include "Common/Common.h"
|
|
|
|
#include "Common/FileUtil.h"
|
|
|
|
#include "Common/IniFile.h"
|
|
|
|
#include "Core/ConfigManager.h"
|
|
|
|
#include "Core/Core.h"
|
|
|
|
#include "Core/Movie.h"
|
|
|
|
#include "VideoCommon/OnScreenDisplay.h"
|
|
|
|
#include "VideoCommon/VideoCommon.h"
|
2014-02-19 01:27:20 +00:00
|
|
|
#include "VideoCommon/VideoConfig.h"
|
2008-12-08 05:25:12 +00:00
|
|
|
|
2009-09-13 10:18:01 +00:00
|
|
|
VideoConfig g_Config;
|
|
|
|
VideoConfig g_ActiveConfig;
|
2009-09-13 08:21:35 +00:00
|
|
|
|
2010-06-05 01:38:22 +00:00
|
|
|
void UpdateActiveConfig()
|
2009-09-13 08:21:35 +00:00
|
|
|
{
|
2013-05-21 23:20:22 +00:00
|
|
|
if (Movie::IsPlayingInput() && Movie::IsConfigSaved())
|
|
|
|
Movie::SetGraphicsConfig();
|
2009-09-13 08:21:35 +00:00
|
|
|
g_ActiveConfig = g_Config;
|
|
|
|
}
|
2008-12-08 05:25:12 +00:00
|
|
|
|
2009-09-13 10:18:01 +00:00
|
|
|
VideoConfig::VideoConfig()
|
2008-12-08 05:25:12 +00:00
|
|
|
{
|
2009-09-06 15:11:21 +00:00
|
|
|
bRunning = false;
|
2010-11-21 14:47:28 +00:00
|
|
|
|
2010-04-04 22:52:27 +00:00
|
|
|
// Needed for the first frame, I think
|
|
|
|
fAspectRatioHackW = 1;
|
|
|
|
fAspectRatioHackH = 1;
|
2010-11-21 14:47:28 +00:00
|
|
|
|
|
|
|
// disable all features by default
|
|
|
|
backend_info.APIType = API_NONE;
|
|
|
|
backend_info.bUseRGBATextures = false;
|
2013-02-18 16:14:56 +00:00
|
|
|
backend_info.bUseMinimalMipCount = false;
|
2010-11-24 17:13:12 +00:00
|
|
|
backend_info.bSupports3DVision = false;
|
2008-12-08 05:25:12 +00:00
|
|
|
}
|
|
|
|
|
2011-04-25 20:06:45 +00:00
|
|
|
void VideoConfig::Load(const char *ini_file)
|
2008-12-08 05:25:12 +00:00
|
|
|
{
|
2010-06-05 01:38:22 +00:00
|
|
|
IniFile iniFile;
|
2011-04-25 20:06:45 +00:00
|
|
|
iniFile.Load(ini_file);
|
2013-03-20 01:51:12 +00:00
|
|
|
|
2011-04-25 20:06:45 +00:00
|
|
|
iniFile.Get("Hardware", "VSync", &bVSync, 0); // Hardware
|
|
|
|
iniFile.Get("Settings", "wideScreenHack", &bWidescreenHack, false);
|
|
|
|
iniFile.Get("Settings", "AspectRatio", &iAspectRatio, (int)ASPECT_AUTO);
|
|
|
|
iniFile.Get("Settings", "Crop", &bCrop, false);
|
|
|
|
iniFile.Get("Settings", "UseXFB", &bUseXFB, 0);
|
|
|
|
iniFile.Get("Settings", "UseRealXFB", &bUseRealXFB, 0);
|
2011-04-30 14:27:35 +00:00
|
|
|
iniFile.Get("Settings", "SafeTextureCacheColorSamples", &iSafeTextureCache_ColorSamples,128);
|
2011-04-25 20:06:45 +00:00
|
|
|
iniFile.Get("Settings", "ShowFPS", &bShowFPS, false); // Settings
|
2012-10-04 03:41:02 +00:00
|
|
|
iniFile.Get("Settings", "LogFPSToFile", &bLogFPSToFile, false);
|
2011-04-25 20:06:45 +00:00
|
|
|
iniFile.Get("Settings", "ShowInputDisplay", &bShowInputDisplay, false);
|
|
|
|
iniFile.Get("Settings", "OverlayStats", &bOverlayStats, false);
|
|
|
|
iniFile.Get("Settings", "OverlayProjStats", &bOverlayProjStats, false);
|
|
|
|
iniFile.Get("Settings", "ShowEFBCopyRegions", &bShowEFBCopyRegions, false);
|
|
|
|
iniFile.Get("Settings", "DLOptimize", &iCompileDLsLevel, 0);
|
|
|
|
iniFile.Get("Settings", "DumpTextures", &bDumpTextures, 0);
|
|
|
|
iniFile.Get("Settings", "HiresTextures", &bHiresTextures, 0);
|
|
|
|
iniFile.Get("Settings", "DumpEFBTarget", &bDumpEFBTarget, 0);
|
|
|
|
iniFile.Get("Settings", "DumpFrames", &bDumpFrames, 0);
|
|
|
|
iniFile.Get("Settings", "FreeLook", &bFreeLook, 0);
|
|
|
|
iniFile.Get("Settings", "UseFFV1", &bUseFFV1, 0);
|
|
|
|
iniFile.Get("Settings", "AnaglyphStereo", &bAnaglyphStereo, false);
|
|
|
|
iniFile.Get("Settings", "AnaglyphStereoSeparation", &iAnaglyphStereoSeparation, 200);
|
|
|
|
iniFile.Get("Settings", "AnaglyphFocalAngle", &iAnaglyphFocalAngle, 0);
|
|
|
|
iniFile.Get("Settings", "EnablePixelLighting", &bEnablePixelLighting, 0);
|
2013-05-10 10:51:06 +00:00
|
|
|
iniFile.Get("Settings", "FastDepthCalc", &bFastDepthCalc, true);
|
2013-03-20 01:51:12 +00:00
|
|
|
|
2011-04-25 20:06:45 +00:00
|
|
|
iniFile.Get("Settings", "MSAA", &iMultisampleMode, 0);
|
2013-04-06 05:48:00 +00:00
|
|
|
iniFile.Get("Settings", "EFBScale", &iEFBScale, (int) SCALE_1X); // native
|
2013-03-20 01:51:12 +00:00
|
|
|
|
2011-04-25 20:06:45 +00:00
|
|
|
iniFile.Get("Settings", "DstAlphaPass", &bDstAlphaPass, false);
|
2013-03-20 01:51:12 +00:00
|
|
|
|
2011-04-25 20:06:45 +00:00
|
|
|
iniFile.Get("Settings", "TexFmtOverlayEnable", &bTexFmtOverlayEnable, 0);
|
|
|
|
iniFile.Get("Settings", "TexFmtOverlayCenter", &bTexFmtOverlayCenter, 0);
|
|
|
|
iniFile.Get("Settings", "WireFrame", &bWireFrame, 0);
|
|
|
|
iniFile.Get("Settings", "DisableFog", &bDisableFog, 0);
|
2013-03-20 01:51:12 +00:00
|
|
|
|
2011-04-25 20:06:45 +00:00
|
|
|
iniFile.Get("Settings", "OMPDecoder", &bOMPDecoder, false);
|
|
|
|
|
2011-09-09 19:34:46 +00:00
|
|
|
iniFile.Get("Settings", "EnableShaderDebugging", &bEnableShaderDebugging, false);
|
|
|
|
|
2011-04-25 20:06:45 +00:00
|
|
|
iniFile.Get("Enhancements", "ForceFiltering", &bForceFiltering, 0);
|
|
|
|
iniFile.Get("Enhancements", "MaxAnisotropy", &iMaxAnisotropy, 0); // NOTE - this is x in (1 << x)
|
|
|
|
iniFile.Get("Enhancements", "PostProcessingShader", &sPostProcessingShader, "");
|
|
|
|
iniFile.Get("Enhancements", "Enable3dVision", &b3DVision, false);
|
2013-03-20 01:51:12 +00:00
|
|
|
|
2011-04-25 20:06:45 +00:00
|
|
|
iniFile.Get("Hacks", "EFBAccessEnable", &bEFBAccessEnable, true);
|
|
|
|
iniFile.Get("Hacks", "EFBCopyEnable", &bEFBCopyEnable, true);
|
2011-04-30 14:27:35 +00:00
|
|
|
iniFile.Get("Hacks", "EFBToTextureEnable", &bCopyEFBToTexture, true);
|
2011-04-25 20:06:45 +00:00
|
|
|
iniFile.Get("Hacks", "EFBScaledCopy", &bCopyEFBScaled, true);
|
|
|
|
iniFile.Get("Hacks", "EFBCopyCacheEnable", &bEFBCopyCacheEnable, false);
|
2011-04-30 14:27:35 +00:00
|
|
|
iniFile.Get("Hacks", "EFBEmulateFormatChanges", &bEFBEmulateFormatChanges, false);
|
2010-06-03 18:05:08 +00:00
|
|
|
|
|
|
|
iniFile.Get("Hardware", "Adapter", &iAdapter, 0);
|
2011-04-25 20:06:45 +00:00
|
|
|
|
2009-06-04 21:21:07 +00:00
|
|
|
// Load common settings
|
2010-02-02 21:56:29 +00:00
|
|
|
iniFile.Load(File::GetUserPath(F_DOLPHINCONFIG_IDX));
|
2009-06-04 21:21:07 +00:00
|
|
|
bool bTmp;
|
2010-06-03 18:05:08 +00:00
|
|
|
iniFile.Get("Interface", "UsePanicHandlers", &bTmp, true);
|
2009-06-04 21:21:07 +00:00
|
|
|
SetEnableAlert(bTmp);
|
2013-08-17 21:48:06 +00:00
|
|
|
|
|
|
|
// Shader Debugging causes a huge slowdown and it's easy to forget about it
|
|
|
|
// since it's not exposed in the settings dialog. It's only used by
|
|
|
|
// developers, so displaying an obnoxious message avoids some confusion and
|
|
|
|
// is not too annoying/confusing for users.
|
|
|
|
//
|
|
|
|
// XXX(delroth): This is kind of a bad place to put this, but the current
|
|
|
|
// VideoCommon is a mess and we don't have a central initialization
|
|
|
|
// function to do these kind of checks. Instead, the init code is
|
|
|
|
// triplicated for each video backend.
|
|
|
|
if (bEnableShaderDebugging)
|
|
|
|
OSD::AddMessage("Warning: Shader Debugging is enabled, performance will suffer heavily", 15000);
|
2008-12-08 05:25:12 +00:00
|
|
|
}
|
|
|
|
|
2013-09-23 06:39:14 +00:00
|
|
|
void VideoConfig::GameIniLoad()
|
2009-06-28 16:47:14 +00:00
|
|
|
{
|
2013-09-04 21:21:45 +00:00
|
|
|
bool gfx_override_exists = false;
|
|
|
|
|
|
|
|
// XXX: Again, bad place to put OSD messages at (see delroth's comment above)
|
|
|
|
// XXX: This will add an OSD message for each projection hack value... meh
|
2013-09-07 21:02:49 +00:00
|
|
|
#define CHECK_SETTING(section, key, var) do { \
|
2013-09-04 21:21:45 +00:00
|
|
|
decltype(var) temp = var; \
|
|
|
|
if (iniFile.GetIfExists(section, key, &var) && var != temp) { \
|
|
|
|
char buf[256]; \
|
|
|
|
snprintf(buf, sizeof(buf), "Note: Option \"%s\" is overridden by game ini.", key); \
|
|
|
|
OSD::AddMessage(buf, 7500); \
|
|
|
|
gfx_override_exists = true; \
|
|
|
|
} \
|
2013-09-07 21:02:49 +00:00
|
|
|
} while (0)
|
2013-09-04 21:21:45 +00:00
|
|
|
|
2013-09-23 06:39:14 +00:00
|
|
|
IniFile iniFile = SConfig::GetInstance().m_LocalCoreStartupParameter.LoadGameIni();
|
2011-02-13 22:36:12 +00:00
|
|
|
|
2013-09-04 21:21:45 +00:00
|
|
|
CHECK_SETTING("Video_Hardware", "VSync", bVSync);
|
|
|
|
|
|
|
|
CHECK_SETTING("Video_Settings", "wideScreenHack", bWidescreenHack);
|
|
|
|
CHECK_SETTING("Video_Settings", "AspectRatio", iAspectRatio);
|
|
|
|
CHECK_SETTING("Video_Settings", "Crop", bCrop);
|
|
|
|
CHECK_SETTING("Video_Settings", "UseXFB", bUseXFB);
|
|
|
|
CHECK_SETTING("Video_Settings", "UseRealXFB", bUseRealXFB);
|
|
|
|
CHECK_SETTING("Video_Settings", "SafeTextureCacheColorSamples", iSafeTextureCache_ColorSamples);
|
|
|
|
CHECK_SETTING("Video_Settings", "DLOptimize", iCompileDLsLevel);
|
|
|
|
CHECK_SETTING("Video_Settings", "HiresTextures", bHiresTextures);
|
|
|
|
CHECK_SETTING("Video_Settings", "AnaglyphStereo", bAnaglyphStereo);
|
|
|
|
CHECK_SETTING("Video_Settings", "AnaglyphStereoSeparation", iAnaglyphStereoSeparation);
|
|
|
|
CHECK_SETTING("Video_Settings", "AnaglyphFocalAngle", iAnaglyphFocalAngle);
|
|
|
|
CHECK_SETTING("Video_Settings", "EnablePixelLighting", bEnablePixelLighting);
|
|
|
|
CHECK_SETTING("Video_Settings", "FastDepthCalc", bFastDepthCalc);
|
|
|
|
CHECK_SETTING("Video_Settings", "MSAA", iMultisampleMode);
|
2013-04-08 07:05:12 +00:00
|
|
|
int tmp = -9000;
|
2013-09-04 21:21:45 +00:00
|
|
|
CHECK_SETTING("Video_Settings", "EFBScale", tmp); // integral
|
2013-04-08 07:11:45 +00:00
|
|
|
if (tmp != -9000)
|
2013-04-05 21:13:48 +00:00
|
|
|
{
|
2013-04-08 07:11:45 +00:00
|
|
|
if (tmp != SCALE_FORCE_INTEGRAL)
|
2013-04-24 13:21:54 +00:00
|
|
|
{
|
2013-04-08 07:11:45 +00:00
|
|
|
iEFBScale = tmp;
|
2013-04-24 13:21:54 +00:00
|
|
|
}
|
|
|
|
else // Round down to multiple of native IR
|
2013-04-05 21:13:48 +00:00
|
|
|
{
|
2013-04-08 07:11:45 +00:00
|
|
|
switch (iEFBScale)
|
|
|
|
{
|
|
|
|
case SCALE_AUTO:
|
|
|
|
iEFBScale = SCALE_AUTO_INTEGRAL;
|
|
|
|
break;
|
|
|
|
case SCALE_1_5X:
|
|
|
|
iEFBScale = SCALE_1X;
|
|
|
|
break;
|
|
|
|
case SCALE_2_5X:
|
|
|
|
iEFBScale = SCALE_2X;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
2013-04-05 21:13:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-04 21:21:45 +00:00
|
|
|
CHECK_SETTING("Video_Settings", "DstAlphaPass", bDstAlphaPass);
|
|
|
|
CHECK_SETTING("Video_Settings", "DisableFog", bDisableFog);
|
|
|
|
CHECK_SETTING("Video_Settings", "OMPDecoder", bOMPDecoder);
|
|
|
|
|
|
|
|
CHECK_SETTING("Video_Enhancements", "ForceFiltering", bForceFiltering);
|
|
|
|
CHECK_SETTING("Video_Enhancements", "MaxAnisotropy", iMaxAnisotropy); // NOTE - this is x in (1 << x)
|
|
|
|
CHECK_SETTING("Video_Enhancements", "PostProcessingShader", sPostProcessingShader);
|
|
|
|
CHECK_SETTING("Video_Enhancements", "Enable3dVision", b3DVision);
|
|
|
|
|
|
|
|
CHECK_SETTING("Video_Hacks", "EFBAccessEnable", bEFBAccessEnable);
|
|
|
|
CHECK_SETTING("Video_Hacks", "EFBCopyEnable", bEFBCopyEnable);
|
|
|
|
CHECK_SETTING("Video_Hacks", "EFBToTextureEnable", bCopyEFBToTexture);
|
|
|
|
CHECK_SETTING("Video_Hacks", "EFBScaledCopy", bCopyEFBScaled);
|
|
|
|
CHECK_SETTING("Video_Hacks", "EFBCopyCacheEnable", bEFBCopyCacheEnable);
|
|
|
|
CHECK_SETTING("Video_Hacks", "EFBEmulateFormatChanges", bEFBEmulateFormatChanges);
|
|
|
|
|
2013-09-18 10:27:50 +00:00
|
|
|
CHECK_SETTING("Video", "ProjectionHack", iPhackvalue[0]);
|
2013-09-04 21:21:45 +00:00
|
|
|
CHECK_SETTING("Video", "PH_SZNear", iPhackvalue[1]);
|
|
|
|
CHECK_SETTING("Video", "PH_SZFar", iPhackvalue[2]);
|
|
|
|
CHECK_SETTING("Video", "PH_ExtraParam", iPhackvalue[3]);
|
|
|
|
CHECK_SETTING("Video", "PH_ZNear", sPhackvalue[0]);
|
|
|
|
CHECK_SETTING("Video", "PH_ZFar", sPhackvalue[1]);
|
|
|
|
CHECK_SETTING("Video", "UseBBox", bUseBBox);
|
|
|
|
CHECK_SETTING("Video", "PerfQueriesEnable", bPerfQueriesEnable);
|
|
|
|
|
|
|
|
if (gfx_override_exists)
|
|
|
|
OSD::AddMessage("Warning: Opening the graphics configuration will reset settings and might cause issues!", 10000);
|
2011-02-13 13:42:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void VideoConfig::VerifyValidity()
|
|
|
|
{
|
|
|
|
// TODO: Check iMaxAnisotropy value
|
2011-04-25 20:06:45 +00:00
|
|
|
if (iAdapter < 0 || iAdapter > ((int)backend_info.Adapters.size() - 1)) iAdapter = 0;
|
2011-02-13 22:36:12 +00:00
|
|
|
if (iMultisampleMode < 0 || iMultisampleMode >= (int)backend_info.AAModes.size()) iMultisampleMode = 0;
|
2011-02-13 13:42:59 +00:00
|
|
|
if (!backend_info.bSupports3DVision) b3DVision = false;
|
|
|
|
if (!backend_info.bSupportsFormatReinterpretation) bEFBEmulateFormatChanges = false;
|
2011-03-19 00:50:34 +00:00
|
|
|
if (!backend_info.bSupportsPixelLighting) bEnablePixelLighting = false;
|
2009-03-20 11:51:22 +00:00
|
|
|
}
|
|
|
|
|
2009-09-13 10:18:01 +00:00
|
|
|
void VideoConfig::Save(const char *ini_file)
|
2008-12-08 05:25:12 +00:00
|
|
|
{
|
2010-06-05 01:38:22 +00:00
|
|
|
IniFile iniFile;
|
|
|
|
iniFile.Load(ini_file);
|
|
|
|
iniFile.Set("Hardware", "VSync", bVSync);
|
2010-06-03 18:05:08 +00:00
|
|
|
iniFile.Set("Settings", "AspectRatio", iAspectRatio);
|
|
|
|
iniFile.Set("Settings", "Crop", bCrop);
|
|
|
|
iniFile.Set("Settings", "wideScreenHack", bWidescreenHack);
|
2010-06-05 01:38:22 +00:00
|
|
|
iniFile.Set("Settings", "UseXFB", bUseXFB);
|
2010-06-03 18:05:08 +00:00
|
|
|
iniFile.Set("Settings", "UseRealXFB", bUseRealXFB);
|
|
|
|
iniFile.Set("Settings", "SafeTextureCacheColorSamples", iSafeTextureCache_ColorSamples);
|
2010-06-05 01:38:22 +00:00
|
|
|
iniFile.Set("Settings", "ShowFPS", bShowFPS);
|
2012-10-04 03:41:02 +00:00
|
|
|
iniFile.Set("Settings", "LogFPSToFile", bLogFPSToFile);
|
2011-02-17 09:12:36 +00:00
|
|
|
iniFile.Set("Settings", "ShowInputDisplay", bShowInputDisplay);
|
2010-06-05 01:38:22 +00:00
|
|
|
iniFile.Set("Settings", "OverlayStats", bOverlayStats);
|
2010-06-03 18:05:08 +00:00
|
|
|
iniFile.Set("Settings", "OverlayProjStats", bOverlayProjStats);
|
2010-06-05 01:38:22 +00:00
|
|
|
iniFile.Set("Settings", "DLOptimize", iCompileDLsLevel);
|
2010-06-03 18:05:08 +00:00
|
|
|
iniFile.Set("Settings", "Show", iCompileDLsLevel);
|
2010-06-05 01:38:22 +00:00
|
|
|
iniFile.Set("Settings", "DumpTextures", bDumpTextures);
|
|
|
|
iniFile.Set("Settings", "HiresTextures", bHiresTextures);
|
2010-06-03 18:05:08 +00:00
|
|
|
iniFile.Set("Settings", "DumpEFBTarget", bDumpEFBTarget);
|
|
|
|
iniFile.Set("Settings", "DumpFrames", bDumpFrames);
|
2010-06-05 01:38:22 +00:00
|
|
|
iniFile.Set("Settings", "FreeLook", bFreeLook);
|
2011-02-11 22:09:20 +00:00
|
|
|
iniFile.Set("Settings", "UseFFV1", bUseFFV1);
|
2010-09-23 02:17:48 +00:00
|
|
|
iniFile.Set("Settings", "AnaglyphStereo", bAnaglyphStereo);
|
|
|
|
iniFile.Set("Settings", "AnaglyphStereoSeparation", iAnaglyphStereoSeparation);
|
|
|
|
iniFile.Set("Settings", "AnaglyphFocalAngle", iAnaglyphFocalAngle);
|
2011-03-23 02:06:40 +00:00
|
|
|
iniFile.Set("Settings", "EnablePixelLighting", bEnablePixelLighting);
|
2013-05-09 15:48:48 +00:00
|
|
|
iniFile.Set("Settings", "FastDepthCalc", bFastDepthCalc);
|
2010-09-23 02:17:48 +00:00
|
|
|
|
2010-06-05 01:38:22 +00:00
|
|
|
iniFile.Set("Settings", "ShowEFBCopyRegions", bShowEFBCopyRegions);
|
|
|
|
iniFile.Set("Settings", "MSAA", iMultisampleMode);
|
2010-06-09 15:33:01 +00:00
|
|
|
iniFile.Set("Settings", "EFBScale", iEFBScale);
|
2010-06-05 01:38:22 +00:00
|
|
|
iniFile.Set("Settings", "TexFmtOverlayEnable", bTexFmtOverlayEnable);
|
|
|
|
iniFile.Set("Settings", "TexFmtOverlayCenter", bTexFmtOverlayCenter);
|
2011-04-25 20:06:45 +00:00
|
|
|
iniFile.Set("Settings", "Wireframe", bWireFrame);
|
2010-06-05 01:38:22 +00:00
|
|
|
iniFile.Set("Settings", "DstAlphaPass", bDstAlphaPass);
|
2010-06-03 18:05:08 +00:00
|
|
|
iniFile.Set("Settings", "DisableFog", bDisableFog);
|
2010-11-24 17:30:04 +00:00
|
|
|
|
2011-03-19 01:55:57 +00:00
|
|
|
iniFile.Set("Settings", "OMPDecoder", bOMPDecoder);
|
2013-03-20 01:51:12 +00:00
|
|
|
|
2011-09-09 19:34:46 +00:00
|
|
|
iniFile.Set("Settings", "EnableShaderDebugging", bEnableShaderDebugging);
|
|
|
|
|
2010-06-05 01:38:22 +00:00
|
|
|
iniFile.Set("Enhancements", "ForceFiltering", bForceFiltering);
|
|
|
|
iniFile.Set("Enhancements", "MaxAnisotropy", iMaxAnisotropy);
|
2010-06-03 18:05:08 +00:00
|
|
|
iniFile.Set("Enhancements", "PostProcessingShader", sPostProcessingShader);
|
2010-11-08 22:17:51 +00:00
|
|
|
iniFile.Set("Enhancements", "Enable3dVision", b3DVision);
|
2013-03-20 01:51:12 +00:00
|
|
|
|
2010-06-05 01:38:22 +00:00
|
|
|
iniFile.Set("Hacks", "EFBAccessEnable", bEFBAccessEnable);
|
2010-11-18 03:50:50 +00:00
|
|
|
iniFile.Set("Hacks", "EFBCopyEnable", bEFBCopyEnable);
|
2013-09-07 21:02:49 +00:00
|
|
|
iniFile.Set("Hacks", "EFBToTextureEnable", bCopyEFBToTexture);
|
2010-06-03 18:05:08 +00:00
|
|
|
iniFile.Set("Hacks", "EFBScaledCopy", bCopyEFBScaled);
|
2010-12-20 14:48:46 +00:00
|
|
|
iniFile.Set("Hacks", "EFBCopyCacheEnable", bEFBCopyCacheEnable);
|
2010-12-27 21:56:20 +00:00
|
|
|
iniFile.Set("Hacks", "EFBEmulateFormatChanges", bEFBEmulateFormatChanges);
|
2010-12-20 14:48:46 +00:00
|
|
|
|
2010-06-03 18:05:08 +00:00
|
|
|
iniFile.Set("Hardware", "Adapter", iAdapter);
|
2013-03-20 01:51:12 +00:00
|
|
|
|
2010-06-05 01:38:22 +00:00
|
|
|
iniFile.Save(ini_file);
|
2009-09-13 08:21:35 +00:00
|
|
|
}
|
|
|
|
|
2013-03-19 00:41:45 +00:00
|
|
|
bool VideoConfig::IsVSync()
|
|
|
|
{
|
|
|
|
return Core::isTabPressed ? false : bVSync;
|
|
|
|
}
|