-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[multi] Avoid direct file access, read data from memory #1232
Comments
Finally I decided not to move file-formats loading to external libraries, current raylib Probably big projects using a custom package resource fileformat prefer not using those loaders... |
Some functions reviewed in commit 0e56bc2 |
|
This change could introduce an issue on dataSize precalculation...
Actually, |
Redesigned |
Implemented solution on raylib was using There is a related issue on |
One of the big changes of raylib 3.0 was changing most of the functions reading data from files to reading data from a pre-loaded buffer, this way all external files are loaded into memory using
LoadFileData()
/LoadFileText()
and then the buffers are processed. Consequently, multiple internal function were adapted to receive a data buffer instead of the filename.But there are still some internal functions left:
LoadBMFont()
LoadDDS()
LoadPKM()
LoadKTX()
LoadPVR()
LoadASTC()
SaveKTX()
ExportImageAsCode()
LoadOBJ()
LoadIQM()
LoadModelAnimations()
ExportMesh()
LoadWAV()
SaveWAV()
ExportWaveAsCode()
Those functions have not been changed because I'm considering moving that functionality out of raylib modules to external libraries.
Note that this change does not mean adding functions for the users to allow file-formats loading from a user-provided memory buffer but support that feature internally by raylib when processing external files, just to avoid
FILE
operations on the module.The text was updated successfully, but these errors were encountered: