-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdxvk.patch
More file actions
32 lines (28 loc) · 942 Bytes
/
dxvk.patch
File metadata and controls
32 lines (28 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff --git a/src/util/log/log.cpp b/src/util/log/log.cpp
index da8b620d..65446e50 100644
--- a/src/util/log/log.cpp
+++ b/src/util/log/log.cpp
@@ -55,12 +55,6 @@ namespace dxvk {
const char* prefix = s_prefixes.at(static_cast<uint32_t>(level));
if (!std::exchange(m_initialized, true)) {
-#ifdef _WIN32
- HMODULE ntdll = GetModuleHandleA("ntdll.dll");
-
- if (ntdll)
- m_wineLogOutput = reinterpret_cast<PFN_wineLogOutput>(GetProcAddress(ntdll, "__wine_dbg_output"));
-#endif
auto path = getFileName(m_fileName);
if (!path.empty())
@@ -77,14 +71,9 @@ namespace dxvk {
std::string adjusted = outstream.str();
if (!adjusted.empty()) {
- if (m_wineLogOutput)
- m_wineLogOutput(adjusted.c_str());
- else
std::cerr << adjusted;
}
- if (m_fileStream)
- m_fileStream << adjusted;
}
}
}