Skip to content

Commit 8c21f0c

Browse files
authored
Merge branch 'praydog:master' into master
2 parents 543ed2a + 83b3909 commit 8c21f0c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/mods/Graphics.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,11 @@ void Graphics::setup_path_trace_hook() {
725725

726726
const auto game = utility::get_executable();
727727
const auto start1 = std::chrono::high_resolution_clock::now();
728-
const auto ref = utility::find_function_from_string_ref(game, "RayTraceSettings", true);
728+
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+
}
729733

730734
if (!ref.has_value()) {
731735
spdlog::error("[Graphics] Failed to find function with RayTraceSettings string reference");

0 commit comments

Comments
 (0)