Skip to content

Add FLA "Enable handling of new enhanced IMG archives = 1" support #118

@WestSide56

Description

@WestSide56

Please add support "Enable handling of new enhanced IMG archives = 1" from Fastman92 limit adjuster to support encrypted archives. This is to prevent people from stealing models.

Maybe this will help you (external FLA function):
`// Returns true if handling of enhanced IMG archives is enabled

F92_LA_API bool F92_LA_CONVENTION IsHandlingOfEnhancedIMGarchivesEnabled()
{
return g_IMGlimits.bHandlingOfNewEnhancedFormatOfImgArchivesEnabled;
}

// Loads CD directory in GTA SA. Works only if enhanced IMG archives are enabled!
F92_LA_API void F92_LA_CONVENTION LoadCdDirectoryInGTASA(
const tImgDescriptorInGTASA pIMGdescriptor,
int imgId,
tGTASAimgLoadingCall
pLoadingCall
)
{
MAKE_VAR_GAME_VERSION();

if (gameVersion == GAME_VERSION_GTA_SA_1_0_US_HOODLUM_WIN_X86)
{
	Game_GTASA::tGTASAimgLoadingCallPriv loadingCallPriv = { 0 };
	loadingCallPriv.pBasicLoadingCall = pLoadingCall;
	
	Game_GTASA::CStreamingAddition::LoadCdDirectoryAdvanced(pIMGdescriptor, imgId, loadingCallPriv);
}

}

// Sets CdStreamStream Release Channel function
F92_LA_API void cdecl SetCdStreamReleaseChannelfUsedByTheFLA(void(__cdeclfunc)(void pStream))
{
Game_GTASA::CStreamingAddition::ReleaseChannel = func;
}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions