summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_rpc_callable.cpp
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2023-08-02 17:14:03 -0300
committerGeorge Marques <george@gmarqu.es>2023-08-11 10:44:23 -0300
commitcff69b0612a4bfc002bd40080829c66e1bb463b7 (patch)
treee2f3ffdc8eb1d959470499aed38ebec1f478364d /modules/gdscript/gdscript_rpc_callable.cpp
parent4714e95896c8db02616ea6ec7f9aff92dec1cae4 (diff)
downloadredot-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 'modules/gdscript/gdscript_rpc_callable.cpp')
0 files changed, 0 insertions, 0 deletions