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