From a194648f3a68249a8419666c3fe83556755380fb Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Wed, 6 Apr 2022 10:14:08 +0200 Subject: [PATCH] [godot] Clean-up GodotSpineExtension. --- .../godot/modules/spine_godot/GodotSpineExtension.cpp | 7 +++---- .../godot/modules/spine_godot/GodotSpineExtension.h | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/spine-godot/godot/modules/spine_godot/GodotSpineExtension.cpp b/spine-godot/godot/modules/spine_godot/GodotSpineExtension.cpp index cace4e354..af91a2809 100644 --- a/spine-godot/godot/modules/spine_godot/GodotSpineExtension.cpp +++ b/spine-godot/godot/modules/spine_godot/GodotSpineExtension.cpp @@ -28,12 +28,11 @@ *****************************************************************************/ #include "GodotSpineExtension.h" +#include "core/os/memory.h" +#include "core/os/file_access.h" -#include "core/variant_parser.h" #include -#include - spine::SpineExtension *spine::getDefaultExtension() { return new GodotSpineExtension(); } @@ -70,4 +69,4 @@ char *GodotSpineExtension::_readFile(const spine::String &path, int *length) { memcpy(r, res.ptr(), res.size()); if (length) *length = res.size(); return r; -} \ No newline at end of file +} diff --git a/spine-godot/godot/modules/spine_godot/GodotSpineExtension.h b/spine-godot/godot/modules/spine_godot/GodotSpineExtension.h index e00726051..7252f87f1 100644 --- a/spine-godot/godot/modules/spine_godot/GodotSpineExtension.h +++ b/spine-godot/godot/modules/spine_godot/GodotSpineExtension.h @@ -30,8 +30,8 @@ #ifndef GODOT_SPINEEXTENSION_H #define GODOT_SPINEEXTENSION_H - #include + class GodotSpineExtension : public spine::SpineExtension { public: GodotSpineExtension();