mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 11:32:51 -05:00
Merge pull request #39684 from asmaloney/FileAccessBuffered-init
Ensure FileAccessBuffered structs are properly initialized
This commit is contained in:
commit
73cbe3d9da
1 changed files with 5 additions and 5 deletions
|
@ -51,16 +51,16 @@ protected:
|
|||
Error set_error(Error p_error) const;
|
||||
|
||||
mutable struct File {
|
||||
bool open;
|
||||
int size;
|
||||
int offset;
|
||||
bool open = false;
|
||||
int size = 0;
|
||||
int offset = 0;
|
||||
String name;
|
||||
int access_flags;
|
||||
int access_flags = 0;
|
||||
} file;
|
||||
|
||||
mutable struct Cache {
|
||||
Vector<uint8_t> buffer;
|
||||
int offset;
|
||||
int offset = 0;
|
||||
} cache;
|
||||
|
||||
virtual int read_data_block(int p_offset, int p_size, uint8_t *p_dest = nullptr) const = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue