summaryrefslogtreecommitdiff
path: root/drivers/unix/dir_access_unix.h
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2021-12-15 13:41:00 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2021-12-15 21:13:35 +0800
commit67f04b381bea03857c21d6bda3eb56cfb6c60fd5 (patch)
tree5a953bdc3f72d5bb605e9934c67de655209e5db9 /drivers/unix/dir_access_unix.h
parent1930fc8b3150e3084c16557d82dc2c517e3f292b (diff)
Add / to the unix shortcut drive list
Also made `get_current_drive()` to pick the longest match on Unix.
Diffstat (limited to 'drivers/unix/dir_access_unix.h')
-rw-r--r--drivers/unix/dir_access_unix.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/unix/dir_access_unix.h b/drivers/unix/dir_access_unix.h
index 8b19308967..327707de00 100644
--- a/drivers/unix/dir_access_unix.h
+++ b/drivers/unix/dir_access_unix.h
@@ -63,6 +63,7 @@ public:
virtual int get_drive_count();
virtual String get_drive(int p_drive);
+ virtual int get_current_drive();
virtual bool drives_are_shortcuts();
virtual Error change_dir(String p_dir); ///< can be relative or absolute, return false on success