You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Add OS.get_external_data_dir() to get Android external directory
This commit is contained in:
@@ -1045,6 +1045,10 @@ String _OS::get_user_data_dir() const {
|
||||
return OS::get_singleton()->get_user_data_dir();
|
||||
};
|
||||
|
||||
String _OS::get_external_data_dir() const {
|
||||
return OS::get_singleton()->get_external_data_dir();
|
||||
}
|
||||
|
||||
Error _OS::native_video_play(String p_path, float p_volume, String p_audio_track, String p_subtitle_track) {
|
||||
return OS::get_singleton()->native_video_play(p_path, p_volume, p_audio_track, p_subtitle_track);
|
||||
};
|
||||
@@ -1315,6 +1319,7 @@ void _OS::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("get_dynamic_memory_usage"), &_OS::get_dynamic_memory_usage);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_user_data_dir"), &_OS::get_user_data_dir);
|
||||
ClassDB::bind_method(D_METHOD("get_external_data_dir"), &_OS::get_external_data_dir);
|
||||
ClassDB::bind_method(D_METHOD("get_system_dir", "dir"), &_OS::get_system_dir);
|
||||
ClassDB::bind_method(D_METHOD("get_unique_id"), &_OS::get_unique_id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user