GodotModding / GodotModding/godot-mod-loader
[4.x] Mod Hooks: Add a check if all arguments are passed to `ModLoaderHook.execute_next()`
Open
4.x
enhancement
investigate
- Dominant language
- GDScript
- Stars
- 675
- Forks
- 54
- Avg merge
- 2m
- Merged PRs (30d)
- 2
Description
If not all arguments of a vanilla function are passed to `ModLoaderHook.execute_next()` the hook will fail silently. It would be a nice QoL update to catch this and let the user know about it.
We should be able to get that info from the [`method_list`](https://docs.godotengine.org/en/stable/classes/class_object.html#class-object-method-get-method-list) / [`script_method_list`](https://docs.godotengine.org/en/stable/classes/class_script.html#class-script-method-get-script-method-list)
Contributor guide
Assessment
This issue has not been assessed yet.