MCPcopy Create free account
hub / github.com/defold/defold / RegisterResourceDecryptionFunction

Function RegisterResourceDecryptionFunction

engine/resource/src/resource_util.cpp:29–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27FDecryptResource g_ResourceDecryption = DecryptWithXtea; // Currently global since we didn't use the resource factory as the context!
28
29void RegisterResourceDecryptionFunction(FDecryptResource decrypt_resource)
30{
31 g_ResourceDecryption = decrypt_resource;
32 if (g_ResourceDecryption == 0)
33 g_ResourceDecryption = DecryptWithXtea;
34}
35
36static dmResource::Result DecryptWithXtea(void* buffer, uint32_t buffer_len)
37{

Callers 2

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68