mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-10 00:58:43 +08:00
[godot] Clean-up GodotSpineExtension.
This commit is contained in:
parent
8b892dc58a
commit
a194648f3a
@ -28,12 +28,11 @@
|
||||
*****************************************************************************/
|
||||
|
||||
#include "GodotSpineExtension.h"
|
||||
#include "core/os/memory.h"
|
||||
#include "core/os/file_access.h"
|
||||
|
||||
#include "core/variant_parser.h"
|
||||
#include <spine/SpineString.h>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -30,8 +30,8 @@
|
||||
#ifndef GODOT_SPINEEXTENSION_H
|
||||
#define GODOT_SPINEEXTENSION_H
|
||||
|
||||
|
||||
#include <spine/Extension.h>
|
||||
|
||||
class GodotSpineExtension : public spine::SpineExtension {
|
||||
public:
|
||||
GodotSpineExtension();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user