mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 23:48:11 +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:
@@ -195,10 +195,7 @@ static func file_exists_in_zip(zip_path: String, path: String) -> bool:
|
||||
if not reader:
|
||||
return false
|
||||
|
||||
if _ModLoaderGodot.is_version_below(_ModLoaderGodot.ENGINE_VERSION_HEX_4_2_0):
|
||||
return reader.get_files().has(path.trim_prefix("res://"))
|
||||
else:
|
||||
return reader.file_exists(path.trim_prefix("res://"))
|
||||
return reader.get_files().has(path.trim_prefix("res://"))
|
||||
|
||||
|
||||
static func get_mod_dir_name_in_zip(zip_path: String) -> String:
|
||||
|
Reference in New Issue
Block a user