Fix virtual binding for `ScriptLanguageExtension::_reload_scripts`

This commit is contained in:
voidedWarranties 2024-08-17 20:45:22 -07:00
parent 1bd740d18d
commit d65ea6fb9c
2 changed files with 8 additions and 0 deletions

View File

@ -142,6 +142,7 @@ void ScriptLanguageExtension::_bind_methods() {
GDVIRTUAL_BIND(_debug_get_current_stack_info); GDVIRTUAL_BIND(_debug_get_current_stack_info);
GDVIRTUAL_BIND(_reload_all_scripts); GDVIRTUAL_BIND(_reload_all_scripts);
GDVIRTUAL_BIND(_reload_scripts, "scripts", "soft_reload");
GDVIRTUAL_BIND(_reload_tool_script, "script", "soft_reload"); GDVIRTUAL_BIND(_reload_tool_script, "script", "soft_reload");
GDVIRTUAL_BIND(_get_recognized_extensions); GDVIRTUAL_BIND(_get_recognized_extensions);

View File

@ -314,6 +314,13 @@
<description> <description>
</description> </description>
</method> </method>
<method name="_reload_scripts" qualifiers="virtual">
<return type="void" />
<param index="0" name="scripts" type="Array" />
<param index="1" name="soft_reload" type="bool" />
<description>
</description>
</method>
<method name="_reload_tool_script" qualifiers="virtual"> <method name="_reload_tool_script" qualifiers="virtual">
<return type="void" /> <return type="void" />
<param index="0" name="script" type="Script" /> <param index="0" name="script" type="Script" />