mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Added basic support for custom resource savers and loaders
This commit is contained in:
@@ -132,6 +132,7 @@ public:
|
||||
};
|
||||
|
||||
class ResourceFormatLoaderAudioStreamOpus : public ResourceFormatLoader {
|
||||
GDCLASS(ResourceFormatLoaderAudioStreamOpus, ResourceFormatLoader)
|
||||
public:
|
||||
virtual RES load(const String &p_path, const String &p_original_path = "", Error *r_error = NULL);
|
||||
virtual void get_recognized_extensions(List<String> *p_extensions) const;
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
#include "audio_stream_opus.h"
|
||||
|
||||
static ResourceFormatLoaderAudioStreamOpus *opus_stream_loader = NULL;
|
||||
static Ref<ResourceFormatLoaderAudioStreamOpus> opus_stream_loader;
|
||||
|
||||
void register_opus_types() {
|
||||
// Sorry guys, do not enable this unless you can figure out a way
|
||||
|
||||
Reference in New Issue
Block a user