1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Add / to the unix shortcut drive list

Also made `get_current_drive()` to pick the longest match on Unix.

(cherry picked from commit 67f04b381b)
This commit is contained in:
Haoyu Qiu
2021-12-15 13:41:00 +08:00
committed by Rémi Verschelde
parent 8e29a37800
commit e40bb68c05
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