mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
Improve DYNAMIC_IMPORT
Don't call get_proc_address every time if if failed. Also rename Utilities/dynamic_library.h to util/dyn_lib.hpp
This commit is contained in:
parent
cdaa8cb5c4
commit
bd5253047b
7 changed files with 27 additions and 23 deletions
|
@ -17,7 +17,7 @@
|
|||
#include "Utilities/sema.h"
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#include "Utilities/dynamic_library.h"
|
||||
#include "util/dyn_lib.hpp"
|
||||
DYNAMIC_IMPORT("ntdll.dll", NtQueryTimerResolution, NTSTATUS(PULONG MinimumResolution, PULONG MaximumResolution, PULONG CurrentResolution));
|
||||
DYNAMIC_IMPORT("ntdll.dll", NtSetTimerResolution, NTSTATUS(ULONG DesiredResolution, BOOLEAN SetResolution, PULONG CurrentResolution));
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue