Skip to content

Commit 59af418

Browse files
authored
refactor: ♻️ updated hook_pre_processor reference (#424)
1 parent 2237863 commit 59af418

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
extends EditorExportPlugin
22

3-
const ModHookPreprocessorScript := preload("res://addons/mod_loader/internal/mod_hook_preprocessor.gd")
4-
static var ModHookPreprocessor: ModLoaderHookPreprocessor
53

4+
static var hook_pre_processor: _ModLoaderModHookPreProcessor
65

76
func _get_name() -> String:
87
return "Godot Mod Loader Export Plugin"
98

109

1110
func _export_begin(features: PackedStringArray, is_debug: bool, path: String, flags: int) -> void:
12-
ModHookPreprocessor = ModHookPreprocessorScript.new()
13-
ModHookPreprocessor.process_begin()
11+
hook_pre_processor = _ModLoaderModHookPreProcessor.new()
12+
hook_pre_processor.process_begin()
1413

1514

1615
func _export_file(path: String, type: String, features: PackedStringArray) -> void:
@@ -23,6 +22,6 @@ func _export_file(path: String, type: String, features: PackedStringArray) -> vo
2322
skip()
2423
add_file(
2524
path,
26-
ModHookPreprocessor.process_script(path).to_utf8_buffer(),
25+
hook_pre_processor.process_script(path).to_utf8_buffer(),
2726
false
2827
)

0 commit comments

Comments
 (0)