Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
WestSide56 opened this issue Oct 28, 2024 · 1 comment
Open

Comments

@WestSide56
Copy link

WestSide56 commented Oct 28, 2024

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;
}`

@Tiagoquix
Copy link

I don't think adding support for digital restrictions management is a good idea. Encrypted archives are basically DRM.

In the end, this is just about modding old GTA games. Adding support for it would make it impossible for legitimate use-cases such as changing and mixing models for personal, non-commercial use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants