nested folder support + refuse to load incompatibly sized textures + general cleanups
This commit is contained in:
@ -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());
|
||||
|
Reference in New Issue
Block a user