diff --git a/src/port/importer/MacroObjectFactory.cpp b/src/port/importer/MacroObjectFactory.cpp index cd43ad54..bafd9c31 100644 --- a/src/port/importer/MacroObjectFactory.cpp +++ b/src/port/importer/MacroObjectFactory.cpp @@ -10,7 +10,7 @@ SM64::MacroObjectFactoryV0::ReadResource(std::shared_ptr file, return nullptr; } - std::shared_ptr macro = std::make_shared(initData); + std::shared_ptr macro = std::make_shared(initData); auto reader = std::get>(file->Reader); uint32_t count = reader->ReadUInt32(); diff --git a/src/port/importer/TrajectoryFactory.cpp b/src/port/importer/TrajectoryFactory.cpp index 61247384..baa5a95f 100644 --- a/src/port/importer/TrajectoryFactory.cpp +++ b/src/port/importer/TrajectoryFactory.cpp @@ -8,7 +8,7 @@ SM64::TrajectoryFactoryV0::ReadResource(std::shared_ptr file, return nullptr; } - std::shared_ptr trajectory = std::make_shared(initData); + std::shared_ptr trajectory = std::make_shared(initData); auto reader = std::get>(file->Reader); uint32_t count = reader->ReadUInt32(); diff --git a/src/port/importer/types/MacroObject.cpp b/src/port/importer/types/MacroObject.cpp index 307861cf..3138cc0c 100644 --- a/src/port/importer/types/MacroObject.cpp +++ b/src/port/importer/types/MacroObject.cpp @@ -1,11 +1,11 @@ #include "MacroObject.h" namespace SM64 { -int16_t* MacroObject::GetPointer() { +int16_t* MacroObjectResource::GetPointer() { return mData.data(); } -size_t MacroObject::GetPointerSize() { +size_t MacroObjectResource::GetPointerSize() { return sizeof(mData.size()) * sizeof(int16_t); } } // namespace SM64 \ No newline at end of file diff --git a/src/port/importer/types/MacroObject.h b/src/port/importer/types/MacroObject.h index 771f7590..af05b450 100644 --- a/src/port/importer/types/MacroObject.h +++ b/src/port/importer/types/MacroObject.h @@ -4,11 +4,11 @@ #include namespace SM64 { -class MacroObject : public Ship::Resource { +class MacroObjectResource : public Ship::Resource { public: using Resource::Resource; - MacroObject() : Resource(std::shared_ptr()) {} + MacroObjectResource() : Resource(std::shared_ptr()) {} int16_t* GetPointer(); size_t GetPointerSize(); diff --git a/src/port/importer/types/Trajectory.cpp b/src/port/importer/types/Trajectory.cpp index 04bf06f2..2ce89f9c 100644 --- a/src/port/importer/types/Trajectory.cpp +++ b/src/port/importer/types/Trajectory.cpp @@ -1,11 +1,11 @@ #include "Trajectory.h" namespace SM64 { -TrajectoryData* Trajectory::GetPointer() { +TrajectoryData* TrajectoryResource::GetPointer() { return mData.data(); } -size_t Trajectory::GetPointerSize() { +size_t TrajectoryResource::GetPointerSize() { return sizeof(mData.size()) * sizeof(TrajectoryData); } } // namespace SM64 \ No newline at end of file diff --git a/src/port/importer/types/Trajectory.h b/src/port/importer/types/Trajectory.h index aca1468f..f58f3eaf 100644 --- a/src/port/importer/types/Trajectory.h +++ b/src/port/importer/types/Trajectory.h @@ -12,11 +12,11 @@ struct TrajectoryData { namespace SM64 { -class Trajectory : public Ship::Resource { +class TrajectoryResource : public Ship::Resource { public: using Resource::Resource; - Trajectory() : Resource(std::shared_ptr()) {} + TrajectoryResource() : Resource(std::shared_ptr()) {} TrajectoryData* GetPointer(); size_t GetPointerSize();