From d5348eebdc7228f7836582cd9bd4ed4f5fd59348 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sun, 31 May 2015 01:59:42 -0300 Subject: work in progress, resource previews --- core/io/file_access_memory.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/io/file_access_memory.cpp') diff --git a/core/io/file_access_memory.cpp b/core/io/file_access_memory.cpp index 2880c4ebda..83da55fc61 100644 --- a/core/io/file_access_memory.cpp +++ b/core/io/file_access_memory.cpp @@ -74,6 +74,14 @@ bool FileAccessMemory::file_exists(const String& p_name) { } +Error FileAccessMemory::open_custom(const uint8_t* p_data, int p_len) { + + data=(uint8_t*)p_data; + length=p_len; + pos=0; + return OK; +} + Error FileAccessMemory::_open(const String& p_path, int p_mode_flags) { ERR_FAIL_COND_V(!files, ERR_FILE_NOT_FOUND); -- cgit v1.2.3