mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
Allow Mod Loader to automatically add hooks on export (#405)
* Update Mod Loader and Tool addons * Mod tool checks if script exists before reloading * Change script export mode to Text for hook export * Change return type of load_image_from_path to Texture2D
This commit is contained in:
@@ -306,7 +306,7 @@ func clear_cache() -> void:
|
||||
cache.clear()
|
||||
property_cache.clear()
|
||||
|
||||
func load_image_from_path(path := "") -> ImageTexture:
|
||||
func load_image_from_path(path := "") -> Texture2D:
|
||||
if path.contains("res://"):
|
||||
if path.contains("NULL"):
|
||||
return null
|
||||
|
Reference in New Issue
Block a user