upbge
upbge copied to clipboard
Add support to bge.logic.startGame load blend from binary data
Currently, bge.logic.startGame loads a blend file from disk only, however, bge.logic.LibLoad provides an option to load binary data instead of a file from disk. Could this be implemented in bge.logic.startGame?
Example of Use
In order to protect blend files, blend files can be extracted from a encrypted ZIP file to memory, then started with bge.logic.startGame directly from memory.
It will be hard to allow restartGame from a startGameof memory data, is it fine to avoid this situation ?
I think so, using startGame again instead of restartGame could be easily a replacement for this issue. As long this limitation is documented in API, I think this will not be a major issue.