SyntaxBomb - Indie Coders

Languages & Coding => AppGameKit ( AGK ) => Topic started by: Pfaber11 on July 16, 2021, 19:17:38

Title: A file that cannot be looked into prior to unpacking
Post by: Pfaber11 on July 16, 2021, 19:17:38
Hi anybody know of a type of file that cannot be looked into prior to unpacking .?
Title: Re: A file that cannot be looked into prior to unpacking
Post by: blinkok on July 17, 2021, 02:20:40
You can encrypt the files yourself using memblocks.
Here is a tutorial on encryption (https://www.thegamecreators.com/pages/newsletters/newsletter_issue_151.html#10)

Load the encrypted files into memory, decrypt and use the memblock commands to create instances of your assets in memory

CreateImageFromPNGMemblock( uint32_t imageID, uint32_t memID )
CreateMusicFromOGGMemblock( uint32_t musicID, uint32_t memID )
CreateSoundFromOGGMemblock( uint32_t soundID, uint32_t memID )
CreateMemblockFromFile( memID, filename )

I think only in the last couple of version this is possible so make sure you are on the latest
Title: Re: A file that cannot be looked into prior to unpacking
Post by: Pfaber11 on July 17, 2021, 07:49:34
Thank you I'll take a look.
SimplePortal 2.3.6 © 2008-2014, SimplePortal