mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
added the game
This commit is contained in:
27
addons/mod_loader/_export_plugin/export_plugin.gd
Normal file
27
addons/mod_loader/_export_plugin/export_plugin.gd
Normal file
@@ -0,0 +1,27 @@
|
||||
extends EditorExportPlugin
|
||||
|
||||
|
||||
static var hook_pre_processor: _ModLoaderModHookPreProcessor
|
||||
|
||||
func _get_name() -> String:
|
||||
return "Godot Mod Loader Export Plugin"
|
||||
|
||||
|
||||
func _export_begin(features: PackedStringArray, is_debug: bool, path: String, flags: int) -> void:
|
||||
hook_pre_processor = _ModLoaderModHookPreProcessor.new()
|
||||
hook_pre_processor.process_begin()
|
||||
|
||||
|
||||
func _export_file(path: String, type: String, features: PackedStringArray) -> void:
|
||||
if path.begins_with("res://addons") or path.begins_with("res://mods-unpacked"):
|
||||
return
|
||||
|
||||
if type != "GDScript":
|
||||
return
|
||||
|
||||
skip()
|
||||
add_file(
|
||||
path,
|
||||
hook_pre_processor.process_script(path, true).to_utf8_buffer(),
|
||||
false
|
||||
)
|
||||
1
addons/mod_loader/_export_plugin/export_plugin.gd.uid
Normal file
1
addons/mod_loader/_export_plugin/export_plugin.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://b0csnkkiudklo
|
||||
7
addons/mod_loader/_export_plugin/plugin.cfg
Normal file
7
addons/mod_loader/_export_plugin/plugin.cfg
Normal file
@@ -0,0 +1,7 @@
|
||||
[plugin]
|
||||
|
||||
name="A Mod Loader Hooks Exporter"
|
||||
description="Export plugin to insert static mod hooks into each script."
|
||||
author="Godot Modding"
|
||||
version="0.1"
|
||||
script="plugin.gd"
|
||||
14
addons/mod_loader/_export_plugin/plugin.gd
Normal file
14
addons/mod_loader/_export_plugin/plugin.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
@tool
|
||||
extends EditorPlugin
|
||||
|
||||
|
||||
var _export_plugin: EditorExportPlugin
|
||||
|
||||
|
||||
func _enter_tree():
|
||||
_export_plugin = preload("res://addons/mod_loader/_export_plugin/export_plugin.gd").new()
|
||||
add_export_plugin(_export_plugin)
|
||||
|
||||
|
||||
func _exit_tree() -> void:
|
||||
remove_export_plugin(_export_plugin)
|
||||
1
addons/mod_loader/_export_plugin/plugin.gd.uid
Normal file
1
addons/mod_loader/_export_plugin/plugin.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://l36n5fcc565s
|
||||
Reference in New Issue
Block a user