Add / to the unix shortcut drive list

Also made `get_current_drive()` to pick the longest match on Unix.
This commit is contained in:
Haoyu Qiu 2021-12-15 13:41:00 +08:00
parent 1930fc8b31
commit 67f04b381b
3 changed files with 25 additions and 2 deletions

View file

@ -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