mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-09-23 05:46:27 +00:00
Merge branch 'master' of https://github.com/cdozdil/OptiScaler
This commit is contained in:
@@ -36,6 +36,7 @@ static std::vector<HMODULE> _asiHandles;
|
||||
#pragma warning (disable : 4996)
|
||||
|
||||
typedef const char* (CDECL* PFN_wine_get_version)(void);
|
||||
typedef void(*PFN_InitializeASI)(void);
|
||||
|
||||
static bool IsRunningOnWine()
|
||||
{
|
||||
@@ -88,6 +89,11 @@ void LoadAsiPlugins()
|
||||
{
|
||||
LOG_INFO("Loaded: {}", entry.path().string());
|
||||
_asiHandles.push_back(hMod);
|
||||
|
||||
auto init = (PFN_InitializeASI)KernelBaseProxy::GetProcAddress_()(hMod, "InitializeASI");
|
||||
|
||||
if (init != nullptr)
|
||||
init();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user