mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Make FileAccess and DirAccess classes reference counted.
This commit is contained in:
@@ -61,12 +61,12 @@ class FileAccessCompressed : public FileAccess {
|
||||
|
||||
String magic = "GCMP";
|
||||
mutable Vector<uint8_t> buffer;
|
||||
FileAccess *f = nullptr;
|
||||
Ref<FileAccess> f;
|
||||
|
||||
public:
|
||||
void configure(const String &p_magic, Compression::Mode p_mode = Compression::MODE_ZSTD, uint32_t p_block_size = 4096);
|
||||
|
||||
Error open_after_magic(FileAccess *p_base);
|
||||
Error open_after_magic(Ref<FileAccess> p_base);
|
||||
|
||||
virtual Error _open(const String &p_path, int p_mode_flags); ///< open a file
|
||||
virtual void close(); ///< close a file
|
||||
|
||||
Reference in New Issue
Block a user