We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 543ed2a + 83b3909 commit 8c21f0cCopy full SHA for 8c21f0c
1 file changed
src/mods/Graphics.cpp
@@ -725,7 +725,11 @@ void Graphics::setup_path_trace_hook() {
725
726
const auto game = utility::get_executable();
727
const auto start1 = std::chrono::high_resolution_clock::now();
728
- const auto ref = utility::find_function_from_string_ref(game, "RayTraceSettings", true);
+ auto ref = utility::find_function_from_string_ref(game, "RayTraceSettings", true);
729
+
730
+ if (!ref.has_value()) {
731
+ ref = utility::find_function_from_string_ref(game, "DXRDebug", true);
732
+ }
733
734
if (!ref.has_value()) {
735
spdlog::error("[Graphics] Failed to find function with RayTraceSettings string reference");
0 commit comments