nested folder support + refuse to load incompatibly sized textures + general cleanups
This commit is contained in:
parent
8a98310a16
commit
ae4aaf2fc1
8 changed files with 141 additions and 57 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include <QColorDialog>
|
||||
#include "citra_qt/configuration/configure_enhancements.h"
|
||||
#include "core/core.h"
|
||||
#include "core/settings.h"
|
||||
#include "ui_configure_enhancements.h"
|
||||
#include "video_core/renderer_opengl/post_processing_opengl.h"
|
||||
|
@ -98,6 +99,9 @@ void ConfigureEnhancements::ApplyConfiguration() {
|
|||
Settings::values.swap_screen = ui->swap_screen->isChecked();
|
||||
Settings::values.dump_textures = ui->toggle_dump_textures->isChecked();
|
||||
Settings::values.custom_textures = ui->toggle_custom_textures->isChecked();
|
||||
auto& custom_tex_cache = Core::System::GetInstance().CustomTexCache();
|
||||
if (Settings::values.custom_textures && custom_tex_cache.IsTexturePathMapEmpty())
|
||||
custom_tex_cache.FindCustomTextures();
|
||||
Settings::values.preload_textures = ui->toggle_preload_textures->isChecked();
|
||||
Settings::values.bg_red = static_cast<float>(bg_color.redF());
|
||||
Settings::values.bg_green = static_cast<float>(bg_color.greenF());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue