Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.
C++
Reset injected fixture controls in the owning runtime CRT
Veyra Goal Agent94861a0d30f2
diff --git a/tests/unit/LmxxfNrFakeRuntime.cpp b/tests/unit/LmxxfNrFakeRuntime.cppindex 4d51d4d4..232a4e72 100644--- a/tests/unit/LmxxfNrFakeRuntime.cpp+++ b/tests/unit/LmxxfNrFakeRuntime.cpp@@ -79,6 +79,8 @@ extern "C" __declspec(dllexport) uint32_t VeyraLmxxfModelMode(){return mode()=="wrong-model" ? 2 : VEYRA_TEST_MODEL_MODE;}extern "C" __declspec(dllexport) uint32_t VeyraTestLmxxfCreates(){return creates.load();}+// Fixture cleanup must use this DLL's CRT, just as production validation does.+extern "C" __declspec(dllexport) void VeyraTestLmxxfResetControls(){_putenv_s("DLSS5_TEMPORAL_MODE","");}extern "C" __declspec(dllexport) uint32_t VeyraLmxxfControlsCompatible(){const auto* temporal=std::getenv("DLSS5_TEMPORAL_MODE");return !temporal||!*temporal||std::string(temporal)=="0";diff --git a/tests/unit/LmxxfNrTests.cpp b/tests/unit/LmxxfNrTests.cppindex 31ec4b0c..c227fd8b 100644--- a/tests/unit/LmxxfNrTests.cpp+++ b/tests/unit/LmxxfNrTests.cpp@@ -28,8 +28,13 @@ int main(){check(nr.open(directory,ctx.device(),ctx.directQueue(),0x1002,true)&&original.open(directory,ctx.device(),ctx.directQueue(),0x1002,false),"Small and Original sessions coexist");original.close();nr.close();+ const auto injectedModule=LoadLibraryExW((directory/L"LmxxfNrRuntime.dll").c_str(),nullptr,LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR|LOAD_LIBRARY_SEARCH_SYSTEM32);+ if(!injectedModule)return 2;+ const auto resetInjectedControls=reinterpret_cast<void(*)()>(GetProcAddress(injectedModule,"VeyraTestLmxxfResetControls"));+ if(!resetInjectedControls){FreeLibrary(injectedModule);return 2;}SetEnvironmentVariableW(L"VEYRA_TEST_LMXXF_MODE",L"hidden-config");check(!nr.open(directory,ctx.device(),ctx.directQueue(),0x1002),"runtime config cannot enable hidden history after host preflight");+ resetInjectedControls();FreeLibrary(injectedModule);_putenv_s("DLSS5_TEMPORAL_MODE","");SetEnvironmentVariableW(L"VEYRA_TEST_LMXXF_MODE",nullptr);SetEnvironmentVariableW(L"VEYRA_TEST_LMXXF_MODE",L"bad-table");