Add const lvalue ref to core/* container parameters
This commit is contained in:
@ -257,7 +257,7 @@ String OS::get_executable_path() const {
|
||||
return ::OS::get_singleton()->get_executable_path();
|
||||
}
|
||||
|
||||
Error OS::shell_open(String p_uri) {
|
||||
Error OS::shell_open(const String &p_uri) {
|
||||
if (p_uri.begins_with("res://")) {
|
||||
WARN_PRINT("Attempting to open an URL with the \"res://\" protocol. Use `ProjectSettings.globalize_path()` to convert a Godot-specific path to a system path before opening it with `OS.shell_open()`.");
|
||||
} else if (p_uri.begins_with("user://")) {
|
||||
@ -266,7 +266,7 @@ Error OS::shell_open(String p_uri) {
|
||||
return ::OS::get_singleton()->shell_open(p_uri);
|
||||
}
|
||||
|
||||
Error OS::shell_show_in_file_manager(String p_path, bool p_open_folder) {
|
||||
Error OS::shell_show_in_file_manager(const String &p_path, bool p_open_folder) {
|
||||
if (p_path.begins_with("res://")) {
|
||||
WARN_PRINT("Attempting to explore file path with the \"res://\" protocol. Use `ProjectSettings.globalize_path()` to convert a Godot-specific path to a system path before opening it with `OS.shell_show_in_file_manager()`.");
|
||||
} else if (p_path.begins_with("user://")) {
|
||||
|
||||
Reference in New Issue
Block a user