From a20637b3f4ee70b0b9921f792406055680ad23ee Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Sun, 26 Nov 2023 02:03:32 -0500 Subject: [PATCH] Fixes --- source/Irrlicht/CB3DJSONMeshFileLoader.cpp | 12 +++++++---- source/Irrlicht/CB3DJSONMeshFileLoader.h | 24 ++++++++++++++++++++++ 2 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 source/Irrlicht/CB3DJSONMeshFileLoader.h diff --git a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp index 07132537..88fcb280 100644 --- a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp +++ b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp @@ -14,11 +14,15 @@ class CB3DJSONMeshFileLoader : public IMeshLoader { public: - CB3DJSONMeshFileLoader(); +CB3DJSONMeshFileLoader::CB3DJSONMeshFileLoader() +{ +} - bool isALoadableFileExtension(const io::path& fileName) const override; - - IAnimatedMesh* createMesh(io::IReadFile* file) override; +bool CB3DJSONMeshFileLoader::isALoadableFileExtension( + const io::path& fileName) const +{ + return core::hasFileExtension(fileName, "b3djson"); +} };// class CB3DJSONMeshFileLoader } // namespace scene diff --git a/source/Irrlicht/CB3DJSONMeshFileLoader.h b/source/Irrlicht/CB3DJSONMeshFileLoader.h new file mode 100644 index 00000000..7e8269b9 --- /dev/null +++ b/source/Irrlicht/CB3DJSONMeshFileLoader.h @@ -0,0 +1,24 @@ +#include "IAnimatedMesh.h" +#include "IMeshLoader.h" +#include "IReadFile.h" +#include "path.h" + +namespace irr +{ + +namespace scene +{ + +class CB3DJSONMeshFileLoader : public IMeshLoader +{ +public: + + CB3DJSONMeshFileLoader(); + + bool isALoadableFileExtension(const io::path& fileName) const override; + + IAnimatedMesh* createMesh(io::IReadFile* file) override; + +};// class CB3DJSONMeshFileLoader +} // namespace scene +} // namespace irr \ No newline at end of file