diff options
author | George Marques <george@gmarqu.es> | 2023-08-02 17:14:03 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2023-08-11 10:44:23 -0300 |
commit | cff69b0612a4bfc002bd40080829c66e1bb463b7 (patch) | |
tree | e2f3ffdc8eb1d959470499aed38ebec1f478364d /methods.py | |
parent | 4714e95896c8db02616ea6ec7f9aff92dec1cae4 (diff) | |
download | redot-engine-cff69b0612a4bfc002bd40080829c66e1bb463b7.tar.gz |
GDExtension: Copy DLL to a temp file before opening
This is done only in the editor and only on Windows, to avoid a file
lock that prevents the original library being updated (e.g. by a
compiler).
When the game runs it will load the original DLL and pick up any
changes, only the editor will stay with the copy (until it is restarted
and create a new copy).
The copy is done in place by prepending a `~` to the original file name,
so dependencies that are loaded with a relative file path still work.
When the library is unloaded the copy file is deleted. The copy is also
marked as hidden to not show up in explorer.
Diffstat (limited to 'methods.py')
0 files changed, 0 insertions, 0 deletions