mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2025-10-30 07:01:10 +00:00
better definitions for some reason
This commit is contained in:
parent
a7df89824c
commit
260026beed
2 changed files with 6 additions and 6 deletions
|
|
@ -124,10 +124,10 @@ namespace Loader::DL {
|
|||
}
|
||||
|
||||
/// Modified version of the dlopen function.
|
||||
extern "C" void* dlopen(const char* filename, int flag);
|
||||
extern "C" void* dlopen(const char* filename, int flag) noexcept;
|
||||
/// Modified version of the dlsym function.
|
||||
extern "C" void* dlsym(void* handle, const char* symbol);
|
||||
extern "C" void* dlsym(void* handle, const char* symbol) noexcept;
|
||||
/// Modified version of the dlclose function.
|
||||
extern "C" int dlclose(void* handle);
|
||||
extern "C" int dlclose(void* handle) noexcept;
|
||||
|
||||
#endif // DL_HPP
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ void DL::registerFile(const File& file) {
|
|||
void DL::disableHooks() { enable_hooks = false; }
|
||||
void DL::enableHooks() { enable_hooks = true; }
|
||||
|
||||
extern "C" void* dlopen(const char* filename, int flag) {
|
||||
void* dlopen(const char* filename, int flag) noexcept {
|
||||
auto& files = overrides();
|
||||
auto& loaded = handles();
|
||||
|
||||
|
|
@ -102,7 +102,7 @@ extern "C" void* dlopen(const char* filename, int flag) {
|
|||
return file.getHandle();
|
||||
}
|
||||
|
||||
extern "C" void* dlsym(void* handle, const char* symbol) {
|
||||
void* dlsym(void* handle, const char* symbol) noexcept {
|
||||
const auto& files = overrides();
|
||||
|
||||
if (!enable_hooks || !handle || !symbol)
|
||||
|
|
@ -126,7 +126,7 @@ extern "C" void* dlsym(void* handle, const char* symbol) {
|
|||
return func;
|
||||
}
|
||||
|
||||
extern "C" int dlclose(void* handle) {
|
||||
int dlclose(void* handle) noexcept {
|
||||
auto& files = overrides();
|
||||
auto& loaded = handles();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue