fix(shader): force passthrough quan està apagat; F5/F6 ignorats sense shader actiu
This commit is contained in:
1 parent
964c32dd0d
commit
ef7fbf4027
3 files changed
+11
-1
No files matched your search
@@ -89,6 +89,9 @@ namespace GlobalInputs {
|
||||
}
|
||||
|
||||
void onNextShader() {
|
||||
// F5/F6 només tenen sentit quan els shaders estan actius. Si no,
|
||||
// ignorem la pulsació en silenci — l'usuari ha de prémer F4 abans.
|
||||
if (!Options::video().shader.enabled) { return; }
|
||||
const std::string NEW_NAME = (Options::video().shader.current_shader == "crtpi") ? "postfx" : "crtpi";
|
||||
Options::setActiveShaderName(NEW_NAME);
|
||||
OptionsApply::reapplyShader();
|
||||
@@ -98,6 +101,7 @@ namespace GlobalInputs {
|
||||
// Busca l'entrada actual al vector de presets i passa a la següent
|
||||
// (wrap-around). Si no en troba cap s'evita el canvi silenciosament.
|
||||
void onNextPreset() {
|
||||
if (!Options::video().shader.enabled) { return; }
|
||||
const bool IS_CRTPI = Options::video().shader.current_shader == "crtpi";
|
||||
std::string new_preset;
|
||||
if (IS_CRTPI) {
|
||||
|
||||
Reference in new issue
Block a user