diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2025-03-16 17:16:24 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2025-03-16 17:16:24 -0600 |
| commit | c062a87e98fe4e9957b3453c68163738a7b8cb79 (patch) | |
| tree | 755c93a0b7b03b7584e5bbc8949010c072735728 /src/port/resource/importers/ScriptFactory.cpp | |
| parent | baabd2457e0c7410b7d4d672bc04dd81e179d0c0 (diff) | |
Fixed importers
Diffstat (limited to 'src/port/resource/importers/ScriptFactory.cpp')
| -rw-r--r-- | src/port/resource/importers/ScriptFactory.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/port/resource/importers/ScriptFactory.cpp b/src/port/resource/importers/ScriptFactory.cpp index 12f837fe..ed661efd 100644 --- a/src/port/resource/importers/ScriptFactory.cpp +++ b/src/port/resource/importers/ScriptFactory.cpp @@ -4,8 +4,9 @@ #include "ResourceUtil.h" namespace SF64 { -std::shared_ptr<Ship::IResource> ResourceFactoryBinaryScriptV0::ReadResource(std::shared_ptr<Ship::File> file) { - if (!FileHasValidFormatAndReader(file)) { +std::shared_ptr<Ship::IResource> ResourceFactoryBinaryScriptV0::ReadResource(std::shared_ptr<Ship::File> file, + std::shared_ptr<Ship::ResourceInitData> initData) { + if (!FileHasValidFormatAndReader(file, initData)) { return nullptr; } |
