mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-02 15:45:58 +00:00
VideoCommon: update videoconfig for graphics mod 2.0
This commit is contained in:
parent
032fbd4436
commit
61644f4de5
2 changed files with 5 additions and 4 deletions
|
@ -297,14 +297,16 @@ void CheckForConfigChanges()
|
||||||
|
|
||||||
if (g_ActiveConfig.bGraphicMods && !old_graphics_mods_enabled)
|
if (g_ActiveConfig.bGraphicMods && !old_graphics_mods_enabled)
|
||||||
{
|
{
|
||||||
g_ActiveConfig.graphics_mod_config = GraphicsModGroupConfig(SConfig::GetInstance().GetGameID());
|
g_ActiveConfig.graphics_mod_config =
|
||||||
|
GraphicsModSystem::Config::GraphicsModGroup(SConfig::GetInstance().GetGameID());
|
||||||
g_ActiveConfig.graphics_mod_config->Load();
|
g_ActiveConfig.graphics_mod_config->Load();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto& system = Core::System::GetInstance();
|
||||||
if (g_ActiveConfig.graphics_mod_config &&
|
if (g_ActiveConfig.graphics_mod_config &&
|
||||||
(old_game_mod_changes != g_ActiveConfig.graphics_mod_config->GetChangeCount()))
|
(old_game_mod_changes != g_ActiveConfig.graphics_mod_config->GetChangeCount()))
|
||||||
{
|
{
|
||||||
g_graphics_mod_manager->Load(*g_ActiveConfig.graphics_mod_config);
|
system.GetGraphicsModManager().Load(*g_ActiveConfig.graphics_mod_config);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update texture cache settings with any changed options.
|
// Update texture cache settings with any changed options.
|
||||||
|
@ -359,7 +361,6 @@ void CheckForConfigChanges()
|
||||||
|
|
||||||
if (old_scale != g_framebuffer_manager->GetEFBScale())
|
if (old_scale != g_framebuffer_manager->GetEFBScale())
|
||||||
{
|
{
|
||||||
auto& system = Core::System::GetInstance();
|
|
||||||
auto& pixel_shader_manager = system.GetPixelShaderManager();
|
auto& pixel_shader_manager = system.GetPixelShaderManager();
|
||||||
pixel_shader_manager.Dirty();
|
pixel_shader_manager.Dirty();
|
||||||
}
|
}
|
||||||
|
|
|
@ -272,7 +272,7 @@ struct VideoConfig final
|
||||||
bool bPreferVSForLinePointExpansion = false;
|
bool bPreferVSForLinePointExpansion = false;
|
||||||
int iBitrateKbps = 0;
|
int iBitrateKbps = 0;
|
||||||
bool bGraphicMods = false;
|
bool bGraphicMods = false;
|
||||||
std::optional<GraphicsModGroupConfig> graphics_mod_config;
|
std::optional<GraphicsModSystem::Config::GraphicsModGroup> graphics_mod_config;
|
||||||
|
|
||||||
// Hacks
|
// Hacks
|
||||||
bool bEFBAccessEnable = false;
|
bool bEFBAccessEnable = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue