Fix for old FLA

This commit is contained in:
Silent 2017-06-20 21:40:05 +02:00
parent 07d994cc3e
commit ebd4732411

View File

@ -10,6 +10,10 @@ void FLAUtils::Init()
HMODULE hFLA = GetModuleHandle(TEXT("$fastman92limitAdjuster.asi")); HMODULE hFLA = GetModuleHandle(TEXT("$fastman92limitAdjuster.asi"));
if ( hFLA != nullptr ) if ( hFLA != nullptr )
{ {
GetExtendedIDFunc = reinterpret_cast<decltype(GetExtendedIDFunc)>(GetProcAddress( hFLA, "GetExtendedIDfrom16bitBefore" )); auto function = reinterpret_cast<decltype(GetExtendedIDFunc)>(GetProcAddress( hFLA, "GetExtendedIDfrom16bitBefore" ));
if ( function != nullptr )
{
GetExtendedIDFunc = function;
}
} }
} }