Commit 751d460
authored
Workaround for Script.get_script_method_list() (#594)
I discovered through the process of modding Buckshot Roulette (Godot
4.1.1) that `Script.get_script_method_list()` was not returning
arguments for any of the functions in specific scripts (e.g.
`MenuManager.gd`). This left `method.args` completely empty for every
function parsed with `mod_hook_preprocessor.gd`. The current usage of
this was easily replaceable with
`method_arg_string_with_defaults_and_types`, which was just declared on
the previous line.
This is a quick fix to get the mod loader working for Buckshot, and will
likely need a little tweaking to fit in with the existing style.1 file changed
Lines changed: 10 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| |||
255 | 257 | | |
256 | 258 | | |
257 | 259 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
267 | 266 | | |
268 | 267 | | |
269 | 268 | | |
| |||
0 commit comments