diff options
| author | Juan Linietsky | 2015-05-31 01:59:42 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-05-31 02:00:18 -0300 |
| commit | d5348eebdc7228f7836582cd9bd4ed4f5fd59348 (patch) | |
| tree | f4ba57671543fcdb588026733321bab845c9f500 /core/io/file_access_memory.cpp | |
| parent | f62961aba3d9e11d4741649a591217796151a46c (diff) | |
| download | godot-d5348eebdc7228f7836582cd9bd4ed4f5fd59348.tar.gz godot-d5348eebdc7228f7836582cd9bd4ed4f5fd59348.tar.zst godot-d5348eebdc7228f7836582cd9bd4ed4f5fd59348.zip | |
Diffstat (limited to 'core/io/file_access_memory.cpp')
| -rw-r--r-- | core/io/file_access_memory.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/io/file_access_memory.cpp b/core/io/file_access_memory.cpp index 2880c4ebd..83da55fc6 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); |
