@@ -273,25 +273,25 @@ static func get_mod_loader_hook(
273
273
var method_return := "return %s " % "return_var" if not method_type .is_empty () or return_prop_usage == 131072 else ""
274
274
275
275
return """
276
- {% STATIC% }func {% METHOD_NAME% }({% METHOD_PARAMS% }){% RETURN_TYPE_STRING% }:
276
+ {STATIC} func {METHOD_NAME} ({METHOD_PARAMS} ){RETURN_TYPE_STRING} :
277
277
if ModLoaderStore.get("any_mod_hooked") and ModLoaderStore.any_mod_hooked:
278
- _ModLoaderHooks.call_hooks({% SELF% }, [{% METHOD_ARGS% }], {% HOOK_ID_BEFORE% })
279
- {% METHOD_RETURN_VAR%}{% METHOD_PREFIX% }_{% METHOD_NAME% }({% METHOD_ARGS% })
278
+ _ModLoaderHooks.call_hooks({SELF} , [{METHOD_ARGS} ], {HOOK_ID_BEFORE} )
279
+ {METHOD_RETURN_VAR}{ METHOD_PREFIX} _{METHOD_NAME} ({METHOD_ARGS} )
280
280
if ModLoaderStore.get("any_mod_hooked") and ModLoaderStore.any_mod_hooked:
281
- _ModLoaderHooks.call_hooks({% SELF% }, [{% METHOD_ARGS% }], {% HOOK_ID_AFTER% })
282
- {% METHOD_RETURN% }""" .format ({
283
- "% METHOD_PREFIX% " : method_prefix ,
284
- "% METHOD_NAME% " : method_name ,
285
- "% METHOD_PARAMS% " : method_arg_string_with_defaults_and_types ,
286
- "% RETURN_TYPE_STRING% " : type_string ,
287
- "% METHOD_ARGS% " : method_arg_string_names_only ,
288
- "% SCRIPT_PATH% " : script_path ,
289
- "% METHOD_RETURN_VAR% " : return_var ,
290
- "% METHOD_RETURN% " : method_return ,
291
- "% STATIC% " : static_string ,
292
- "% SELF% " : self_string ,
293
- "% HOOK_ID_BEFORE% " : hash_before ,
294
- "% HOOK_ID_AFTER% " : hash_after ,
281
+ _ModLoaderHooks.call_hooks({SELF} , [{METHOD_ARGS} ], {HOOK_ID_AFTER} )
282
+ {METHOD_RETURN} """ .format ({
283
+ "METHOD_PREFIX" : method_prefix ,
284
+ "METHOD_NAME" : method_name ,
285
+ "METHOD_PARAMS" : method_arg_string_with_defaults_and_types ,
286
+ "RETURN_TYPE_STRING" : type_string ,
287
+ "METHOD_ARGS" : method_arg_string_names_only ,
288
+ "SCRIPT_PATH" : script_path ,
289
+ "METHOD_RETURN_VAR" : return_var ,
290
+ "METHOD_RETURN" : method_return ,
291
+ "STATIC" : static_string ,
292
+ "SELF" : self_string ,
293
+ "HOOK_ID_BEFORE" : hash_before ,
294
+ "HOOK_ID_AFTER" : hash_after ,
295
295
})
296
296
297
297
0 commit comments