4
4
#include " ../Config.h"
5
5
#include " ../Resource.h"
6
6
#include " ../Logger.h"
7
- #include " ../NVNGX_Proxy.h"
8
7
9
8
#include " imgui/imgui.h"
10
9
#include " imgui/imgui_impl_win32.h"
@@ -598,7 +597,7 @@ class ImGuiCommon
598
597
selectedUpscalerName = " FSR 2.2.1 w/Dx12" ;
599
598
else if (Config::Instance ()->newBackend == " fsr21_12" || (Config::Instance ()->newBackend == " " && *code == " fsr21_12" ))
600
599
selectedUpscalerName = " FSR 2.1.2 w/Dx12" ;
601
- else if (NVNGXProxy::IsNVNGXInited ( ) && (Config::Instance ()->newBackend == " dlss" || (Config::Instance ()->newBackend == " " && *code == " dlss" )))
600
+ else if (Config::Instance ()-> DLSSEnabled . value_or ( true ) && (Config::Instance ()->newBackend == " dlss" || (Config::Instance ()->newBackend == " " && *code == " dlss" )))
602
601
selectedUpscalerName = " DLSS" ;
603
602
else
604
603
selectedUpscalerName = " XeSS w/Dx12" ;
@@ -617,7 +616,7 @@ class ImGuiCommon
617
616
if (ImGui::Selectable (" FSR 2.2.1 w/Dx12" , *code == " fsr22_12" ))
618
617
Config::Instance ()->newBackend = " fsr22_12" ;
619
618
620
- if (NVNGXProxy::IsNVNGXInited ( ) && ImGui::Selectable (" DLSS" , *code == " dlss" ))
619
+ if (Config::Instance ()-> DLSSEnabled . value_or ( true ) && ImGui::Selectable (" DLSS" , *code == " dlss" ))
621
620
Config::Instance ()->newBackend = " dlss" ;
622
621
623
622
ImGui::EndCombo ();
@@ -632,7 +631,7 @@ class ImGuiCommon
632
631
selectedUpscalerName = " FSR 2.1.2" ;
633
632
else if (Config::Instance ()->newBackend == " fsr22" || (Config::Instance ()->newBackend == " " && *code == " fsr22" ))
634
633
selectedUpscalerName = " FSR 2.2.1" ;
635
- else if (NVNGXProxy::IsNVNGXInited ( ) && (Config::Instance ()->newBackend == " dlss" || (Config::Instance ()->newBackend == " " && *code == " dlss" )))
634
+ else if (Config::Instance ()-> DLSSEnabled . value_or ( true ) && (Config::Instance ()->newBackend == " dlss" || (Config::Instance ()->newBackend == " " && *code == " dlss" )))
636
635
selectedUpscalerName = " DLSS" ;
637
636
else
638
637
selectedUpscalerName = " XeSS" ;
@@ -648,7 +647,7 @@ class ImGuiCommon
648
647
if (ImGui::Selectable (" FSR 2.2.1" , *code == " fsr22" ))
649
648
Config::Instance ()->newBackend = " fsr22" ;
650
649
651
- if (NVNGXProxy::IsNVNGXInited ( ) && ImGui::Selectable (" DLSS" , *code == " dlss" ))
650
+ if (Config::Instance ()-> DLSSEnabled . value_or ( true ) && ImGui::Selectable (" DLSS" , *code == " dlss" ))
652
651
Config::Instance ()->newBackend = " dlss" ;
653
652
654
653
ImGui::EndCombo ();
@@ -661,7 +660,7 @@ class ImGuiCommon
661
660
662
661
if (Config::Instance ()->newBackend == " fsr21" || (Config::Instance ()->newBackend == " " && *code == " fsr21" ))
663
662
selectedUpscalerName = " FSR 2.1.2" ;
664
- else if (NVNGXProxy::IsNVNGXInited ( ) && (Config::Instance ()->newBackend == " dlss" || (Config::Instance ()->newBackend == " " && *code == " dlss" )))
663
+ else if (Config::Instance ()-> DLSSEnabled . value_or ( true ) && (Config::Instance ()->newBackend == " dlss" || (Config::Instance ()->newBackend == " " && *code == " dlss" )))
665
664
selectedUpscalerName = " DLSS" ;
666
665
else
667
666
selectedUpscalerName = " FSR 2.2.1" ;
0 commit comments