Browse Source
[compat] Windows 8.1 support (#2772)
Signed-off-by: lizzie <lizzie@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2772
Reviewed-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
Reviewed-by: crueter <crueter@eden-emu.dev>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Co-authored-by: lizzie <lizzie@eden-emu.dev>
Co-committed-by: lizzie <lizzie@eden-emu.dev>
pull/2948/head
lizzie
2 months ago
committed by
crueter
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
2 changed files with
12 additions and
2 deletions
-
docs/Caveats.md
-
src/common/thread.cpp
|
|
@ -11,6 +11,7 @@ |
|
|
- [FreeBSD](#freebsd) |
|
|
- [FreeBSD](#freebsd) |
|
|
- [NetBSD](#netbsd) |
|
|
- [NetBSD](#netbsd) |
|
|
- [MSYS2](#msys2) |
|
|
- [MSYS2](#msys2) |
|
|
|
|
|
- [Windows 8.1 and below](#windows-81-and-below) |
|
|
<!-- /TOC --> |
|
|
<!-- /TOC --> |
|
|
|
|
|
|
|
|
## Arch Linux |
|
|
## Arch Linux |
|
|
@ -161,4 +162,10 @@ windeployqt6 --no-compiler-runtime --no-opengl-sw --no-system-dxc-compiler \ |
|
|
|
|
|
|
|
|
# grab deps for Qt plugins |
|
|
# grab deps for Qt plugins |
|
|
find ./*/ -name "*.dll" | while read -r dll; do deps "$dll"; done |
|
|
find ./*/ -name "*.dll" | while read -r dll; do deps "$dll"; done |
|
|
``` |
|
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
## Windows 8.1 and below |
|
|
|
|
|
|
|
|
|
|
|
DirectX 12 is not available - simply copy and paste a random DLL and name it `d3d12.dll`. |
|
|
|
|
|
|
|
|
|
|
|
Install [Qt6 compatibility libraries](github.com/ANightly/qt6windows7) specifically Qt 6.9.5. |
|
|
@ -81,7 +81,10 @@ void SetCurrentThreadPriority(ThreadPriority new_priority) { |
|
|
|
|
|
|
|
|
// Sets the debugger-visible name of the current thread.
|
|
|
// Sets the debugger-visible name of the current thread.
|
|
|
void SetCurrentThreadName(const char* name) { |
|
|
void SetCurrentThreadName(const char* name) { |
|
|
SetThreadDescription(GetCurrentThread(), UTF8ToUTF16W(name).data()); |
|
|
|
|
|
|
|
|
if (auto pf = (decltype(&SetThreadDescription))(void*)GetProcAddress(GetModuleHandle(TEXT("KernelBase.dll")), "SetThreadDescription"); pf) |
|
|
|
|
|
pf(GetCurrentThread(), UTF8ToUTF16W(name).data()); // Windows 10+
|
|
|
|
|
|
else |
|
|
|
|
|
; // No-op
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#else // !MSVC_VER, so must be POSIX threads
|
|
|
#else // !MSVC_VER, so must be POSIX threads
|
|
|
|