mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-05-06 09:40:54 +00:00
renamed XeSS no spoof
This commit is contained in:
@@ -233,7 +233,7 @@ bool Config::Reload(std::filesystem::path iniPath)
|
||||
|
||||
// spoofing
|
||||
DxgiSpoofing = readBool("Spoofing", "Dxgi");
|
||||
DxgiXessNoSpoof = readBool("Spoofing", "DxgiXessNoSpoof");
|
||||
DxgiSkipSpoofForUpscalers = readBool("Spoofing", "DxgiSkipSpoofForUpscalers");
|
||||
DxgiBlacklist = readString("Spoofing", "DxgiBlacklist");
|
||||
VulkanSpoofing = readBool("Spoofing", "Vulkan");
|
||||
VulkanExtensionSpoofing = readBool("Spoofing", "VulkanExtensionSpoofing");
|
||||
@@ -482,7 +482,7 @@ bool Config::SaveIni()
|
||||
|
||||
// Spoofing
|
||||
ini.SetValue("Spoofing", "Dxgi", GetBoolValue(Instance()->DxgiSpoofing).c_str());
|
||||
ini.SetValue("Spoofing", "DxgiXessNoSpoof", GetBoolValue(Instance()->DxgiXessNoSpoof).c_str());
|
||||
ini.SetValue("Spoofing", "DxgiSkipSpoofForUpscalers", GetBoolValue(Instance()->DxgiSkipSpoofForUpscalers).c_str());
|
||||
ini.SetValue("Spoofing", "DxgiBlacklist", Instance()->DxgiBlacklist.value_or("auto").c_str());
|
||||
ini.SetValue("Spoofing", "Vulkan", GetBoolValue(Instance()->VulkanSpoofing).c_str());
|
||||
ini.SetValue("Spoofing", "VulkanExtensionSpoofing", GetBoolValue(Instance()->VulkanExtensionSpoofing).c_str());
|
||||
|
||||
+1
-1
@@ -142,7 +142,7 @@ public:
|
||||
|
||||
// spoofing
|
||||
std::optional<bool> DxgiSpoofing;
|
||||
std::optional<bool> DxgiXessNoSpoof;
|
||||
std::optional<bool> DxgiSkipSpoofForUpscalers;
|
||||
std::optional<std::string> DxgiBlacklist;
|
||||
std::optional<bool> VulkanSpoofing;
|
||||
std::optional<bool> VulkanExtensionSpoofing;
|
||||
|
||||
@@ -33,7 +33,7 @@ bool XeSSFeature::InitXeSS(ID3D12Device* device, const NVSDK_NGX_Parameter* InPa
|
||||
return false;
|
||||
}
|
||||
|
||||
Config::Instance()->xessSkipSpoofing = true;
|
||||
Config::Instance()->dxgiSkipSpoofing = true;
|
||||
|
||||
auto ret = GetVersion()(&_xessVersion);
|
||||
|
||||
@@ -324,7 +324,7 @@ bool XeSSFeature::InitXeSS(ID3D12Device* device, const NVSDK_NGX_Parameter* InPa
|
||||
|
||||
ret = D3D12Init()(_xessContext, &xessParams);
|
||||
|
||||
Config::Instance()->xessSkipSpoofing = false;
|
||||
Config::Instance()->dxgiSkipSpoofing = false;
|
||||
|
||||
if (ret != XESS_RESULT_SUCCESS)
|
||||
{
|
||||
@@ -339,7 +339,7 @@ bool XeSSFeature::InitXeSS(ID3D12Device* device, const NVSDK_NGX_Parameter* InPa
|
||||
|
||||
XeSSFeature::XeSSFeature(unsigned int handleId, NVSDK_NGX_Parameter* InParameters) : IFeature(handleId, InParameters)
|
||||
{
|
||||
Config::Instance()->xessSkipSpoofing = true;
|
||||
Config::Instance()->dxgiSkipSpoofing = true;
|
||||
|
||||
PRN_xessGetVersion ptrMemoryGetVersion = (PRN_xessGetVersion)DetourFindFunction("libxess.dll", "xessGetVersion");
|
||||
PRN_xessGetVersion ptrDllGetVersion = nullptr;
|
||||
@@ -426,7 +426,7 @@ XeSSFeature::XeSSFeature(unsigned int handleId, NVSDK_NGX_Parameter* InParameter
|
||||
}
|
||||
}
|
||||
|
||||
Config::Instance()->xessSkipSpoofing = false;
|
||||
Config::Instance()->dxgiSkipSpoofing = false;
|
||||
}
|
||||
|
||||
XeSSFeature::~XeSSFeature()
|
||||
|
||||
Reference in New Issue
Block a user