mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
DolphinQt: add warning if graphics mods are not enabled
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user