5c23537daa
This patch allows a user to pass binary data to LibLoad() to load a blend file from memory instead of a file path. I don't know how useful this will be for others, but I've used it so far for: * Decrypting .blend files and loading them without having to store the .blend on the hard drive * Pulling .blend data out of an archive and loading it (again skipping the hard drive) So, it seems the biggest use for this is skipping a bit of file IO (and possibly some security problems). Example usage: import bge with f as open('myfile.blend', 'rb'): data = f.read() bge.logic.LibLoad('Name', 'Scene', data) |
||
---|---|---|
.. | ||
API_intro.py | ||
bge_api_validate_py.txt | ||
bge.events.rst | ||
bge.logic.rst | ||
bge.render.rst | ||
bge.types.rst | ||
epy_docgen.sh | ||
how_to_build_win.txt | ||
PhysicsConstraints.py | ||
VideoTexture.py |