summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Config
diff options
context:
space:
mode:
authorMartino Fontana <tinozzo123@gmail.com>2026-02-09 19:08:53 +0100
committerMartino Fontana <tinozzo123@gmail.com>2026-02-13 13:57:43 +0100
commitfdbc2883ef3984f9f766aaca0dbae0cf3844e8d2 (patch)
treed892157c6c2ec7a939e33ae83f5181f187289a9e /Source/Core/Common/Config
parentebc8c9d857f8cbc99d555c4c2b16e3e8098a718a (diff)
VideoCommon: Invert interaction between Arbitrary Mipmap Detection and GPU Texture Decoding (the former disables the latter)
Split from #14293. It makes sense for a setting that changes visual output to have priority over a setting that barely makes any difference.
Diffstat (limited to 'Source/Core/Common/Config')
-rw-r--r--Source/Core/Common/Config/Config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/Common/Config/Config.h b/Source/Core/Common/Config/Config.h
index d8a2a9a691..1a32203ea5 100644
--- a/Source/Core/Common/Config/Config.h
+++ b/Source/Core/Common/Config/Config.h
@@ -62,6 +62,14 @@ T Get(LayerType layer, const Info<T>& info)
}
template <typename T>
+T Get(const Layer* game_layer, const Info<T>& setting)
+{
+ if (game_layer != nullptr)
+ return game_layer->Get(setting);
+ return Get(setting);
+}
+
+template <typename T>
T Get(const Info<T>& info)
{
CachedValue<T> cached = info.GetCachedValue();