mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 18:54:43 +00:00
Make FileAccess and DirAccess classes reference counted.
This commit is contained in:
parent
ca9372622f
commit
9381acb6a4
193 changed files with 1122 additions and 1776 deletions
|
|
@ -43,7 +43,7 @@
|
|||
class DirAccessUnix : public DirAccess {
|
||||
DIR *dir_stream = nullptr;
|
||||
|
||||
static DirAccess *create_fs();
|
||||
static Ref<DirAccess> create_fs();
|
||||
|
||||
String current_dir;
|
||||
bool _cisdir;
|
||||
|
|
@ -67,7 +67,7 @@ public:
|
|||
virtual bool drives_are_shortcuts();
|
||||
|
||||
virtual Error change_dir(String p_dir); ///< can be relative or absolute, return false on success
|
||||
virtual String get_current_dir(bool p_include_drive = true); ///< return current dir location
|
||||
virtual String get_current_dir(bool p_include_drive = true) const; ///< return current dir location
|
||||
virtual Error make_dir(String p_dir);
|
||||
|
||||
virtual bool file_exists(String p_file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue