With C23, there is now a #embed preprocessor macro that can be used to embed raw file data. It would be cool to have some functions that allow us to specify a buffer and size instead of just a file path option.
Example:
In addition to rresResourceChunk rresLoadResourceChunk(const char *fileName, int rresId), there could be a rresResourceChunk rresLoadResourceChunk(const unsigned char *buffer, size_t buffer_size, int rresId) as well.