mirror of
https://github.com/blawar/GLideN64.git
synced 2024-06-25 22:09:35 +00:00
Support config.frameBufferEmulation.forceDepthBufferClear setting in UI.
This commit is contained in:
parent
2e7c0ecee2
commit
e317bb5071
|
@ -166,6 +166,7 @@ void ConfigDialog::_init()
|
|||
ui->RenderFBCheckBox->setChecked(config.frameBufferEmulation.copyFromRDRAM != 0);
|
||||
ui->n64DepthCompareCheckBox->toggle();
|
||||
ui->n64DepthCompareCheckBox->setChecked(config.frameBufferEmulation.N64DepthCompare != 0);
|
||||
ui->forceDepthBufferClearCheckBox->setChecked(config.frameBufferEmulation.forceDepthBufferClear != 0);
|
||||
|
||||
switch (config.frameBufferEmulation.aspect) {
|
||||
case Config::aStretch:
|
||||
|
@ -414,6 +415,7 @@ void ConfigDialog::accept()
|
|||
config.frameBufferEmulation.copyFromRDRAM = ui->RenderFBCheckBox->isChecked() ? 1 : 0;
|
||||
|
||||
config.frameBufferEmulation.N64DepthCompare = ui->n64DepthCompareCheckBox->isChecked() ? 1 : 0;
|
||||
config.frameBufferEmulation.forceDepthBufferClear = ui->forceDepthBufferClearCheckBox->isChecked() ? 1 : 0;
|
||||
|
||||
if (ui->aspectStretchRadioButton->isChecked())
|
||||
config.frameBufferEmulation.aspect = Config::aStretch;
|
||||
|
|
|
@ -54,6 +54,7 @@ void _loadSettings(QSettings & settings)
|
|||
config.frameBufferEmulation.nativeResFactor = settings.value("nativeResFactor", config.frameBufferEmulation.nativeResFactor).toInt();
|
||||
config.frameBufferEmulation.bufferSwapMode = settings.value("bufferSwapMode", config.frameBufferEmulation.bufferSwapMode).toInt();
|
||||
config.frameBufferEmulation.N64DepthCompare = settings.value("N64DepthCompare", config.frameBufferEmulation.N64DepthCompare).toInt();
|
||||
config.frameBufferEmulation.forceDepthBufferClear = settings.value("forceDepthBufferClear", config.frameBufferEmulation.forceDepthBufferClear).toInt();
|
||||
config.frameBufferEmulation.copyAuxToRDRAM = settings.value("copyAuxToRDRAM", config.frameBufferEmulation.copyAuxToRDRAM).toInt();
|
||||
config.frameBufferEmulation.copyToRDRAM = settings.value("copyToRDRAM", config.frameBufferEmulation.copyToRDRAM).toInt();
|
||||
config.frameBufferEmulation.copyDepthToRDRAM = settings.value("copyDepthToRDRAM", config.frameBufferEmulation.copyDepthToRDRAM).toInt();
|
||||
|
@ -182,6 +183,7 @@ void writeSettings(const QString & _strIniFolder)
|
|||
settings.setValue("nativeResFactor", config.frameBufferEmulation.nativeResFactor);
|
||||
settings.setValue("bufferSwapMode", config.frameBufferEmulation.bufferSwapMode);
|
||||
settings.setValue("N64DepthCompare", config.frameBufferEmulation.N64DepthCompare);
|
||||
settings.setValue("forceDepthBufferClear", config.frameBufferEmulation.forceDepthBufferClear);
|
||||
settings.setValue("copyAuxToRDRAM", config.frameBufferEmulation.copyAuxToRDRAM);
|
||||
settings.setValue("copyFromRDRAM", config.frameBufferEmulation.copyFromRDRAM);
|
||||
settings.setValue("copyToRDRAM", config.frameBufferEmulation.copyToRDRAM);
|
||||
|
|
|
@ -2061,6 +2061,16 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="forceDepthBufferClearCheckBox">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Enable force depth buffer clear. A hack. Necessary for Eikou no Saint Andrews.</p><p>[Recommended: <span style=" font-style:italic;">off, except for Eikou no Saint Andrews</span>]</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Force depth buffer clear</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="RenderFBCheckBox">
|
||||
<property name="toolTip">
|
||||
|
|
|
@ -102,6 +102,8 @@ bool Config_SetDefault()
|
|||
assert(res == M64ERR_SUCCESS);
|
||||
res = ConfigSetDefaultBool(g_configVideoGliden64, "EnableN64DepthCompare", config.frameBufferEmulation.N64DepthCompare, "Enable N64 depth compare instead of OpenGL standard one. Experimental.");
|
||||
assert(res == M64ERR_SUCCESS);
|
||||
res = ConfigSetDefaultBool(g_configVideoGliden64, "ForceDepthBufferClear", config.frameBufferEmulation.forceDepthBufferClear, "Force depth buffer clear. Hack. Needed for Eikou no Saint Andrews.");
|
||||
assert(res == M64ERR_SUCCESS);
|
||||
res = ConfigSetDefaultBool(g_configVideoGliden64, "DisableFBInfo", config.frameBufferEmulation.fbInfoDisabled, "Disable buffers read/write with FBInfo. Use for games, which do not work with FBInfo.");
|
||||
assert(res == M64ERR_SUCCESS);
|
||||
res = ConfigSetDefaultBool(g_configVideoGliden64, "FBInfoReadColorChunk", config.frameBufferEmulation.fbInfoReadColorChunk, "Read color buffer by 4kb chunks (strict follow to FBRead specification)");
|
||||
|
@ -348,6 +350,7 @@ void Config_LoadConfig()
|
|||
config.frameBufferEmulation.copyDepthToRDRAM = ConfigGetParamInt(g_configVideoGliden64, "EnableCopyDepthToRDRAM");
|
||||
config.frameBufferEmulation.copyFromRDRAM = ConfigGetParamBool(g_configVideoGliden64, "EnableCopyColorFromRDRAM");
|
||||
config.frameBufferEmulation.N64DepthCompare = ConfigGetParamBool(g_configVideoGliden64, "EnableN64DepthCompare");
|
||||
config.frameBufferEmulation.forceDepthBufferClear = ConfigGetParamBool(g_configVideoGliden64, "ForceDepthBufferClear");
|
||||
config.frameBufferEmulation.fbInfoDisabled = ConfigGetParamBool(g_configVideoGliden64, "DisableFBInfo");
|
||||
config.frameBufferEmulation.fbInfoReadColorChunk = ConfigGetParamBool(g_configVideoGliden64, "FBInfoReadColorChunk");
|
||||
config.frameBufferEmulation.fbInfoReadDepthChunk = ConfigGetParamBool(g_configVideoGliden64, "FBInfoReadDepthChunk");
|
||||
|
|
Loading…
Reference in New Issue
Block a user