mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 15:48:51 +00:00
DolphinQt: add warning if graphics mods are not enabled
This commit is contained in:
parent
3eb3e1c83a
commit
8aef0015fd
15 changed files with 156 additions and 4 deletions
|
@ -29,6 +29,7 @@
|
|||
#include "Common/FileUtil.h"
|
||||
#include "Common/StringUtil.h"
|
||||
|
||||
#include "Core/Config/GraphicsSettings.h"
|
||||
#include "Core/Config/MainSettings.h"
|
||||
#include "Core/ConfigManager.h"
|
||||
#include "Core/Core.h"
|
||||
|
@ -351,6 +352,22 @@ bool Settings::IsKeepWindowOnTopEnabled() const
|
|||
return Config::Get(Config::MAIN_KEEP_WINDOW_ON_TOP);
|
||||
}
|
||||
|
||||
bool Settings::GetGraphicModsEnabled() const
|
||||
{
|
||||
return Config::Get(Config::GFX_MODS_ENABLE);
|
||||
}
|
||||
|
||||
void Settings::SetGraphicModsEnabled(bool enabled)
|
||||
{
|
||||
if (GetGraphicModsEnabled() == enabled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Config::SetBaseOrCurrent(Config::GFX_MODS_ENABLE, enabled);
|
||||
emit EnableGfxModsChanged(enabled);
|
||||
}
|
||||
|
||||
int Settings::GetVolume() const
|
||||
{
|
||||
return Config::Get(Config::MAIN_AUDIO_VOLUME);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue