auto resSize = SizeofResource(hModule, hResource);
auto resData = LoadResource(hModule, hResource);
auto resPtr = static_cast<constchar*>(LockResource(resData));
if (resPtr)
{
bad = false;
}
}
FreeLibrary(hModule);
}
if (bad)
{
trace("Unable to load %s - this ASI plugin does not claim to support game build %d. If you have access to its source code, add `FX_ASI_BUILD %d dummy.txt` to the .rc file when building this plugin. If not, contact its maintainer.\n",
ToNarrow(it->path().wstring()).c_str(),
xbr::GetGameBuild(),
xbr::GetGameBuild()
);
}
}
if (LoadPEFile(it->path(), libraryBuffer))
{
if (!CfxIsSinglePlayer())
{
for (auto itt = blacklistedAsis.begin(); itt != blacklistedAsis.end(); ++itt)
{
if (*itt != L"")
{
if (wcsicmp(it->path().filename().c_str(), itt->c_str()) == 0 || wcsicmp(badFileName.c_str(), itt->c_str()) == 0)