mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Add error message when trying to load project from CWD.
This commit is contained in:
@@ -408,6 +408,10 @@ Error OS::set_cwd(const String &p_cwd) {
|
||||
return ERR_CANT_OPEN;
|
||||
}
|
||||
|
||||
String OS::get_cwd() const {
|
||||
return ".";
|
||||
}
|
||||
|
||||
Dictionary OS::get_memory_info() const {
|
||||
Dictionary meminfo;
|
||||
|
||||
|
||||
@@ -205,6 +205,7 @@ public:
|
||||
virtual Error shell_open(const String &p_uri);
|
||||
virtual Error shell_show_in_file_manager(String p_path, bool p_open_folder = true);
|
||||
virtual Error set_cwd(const String &p_cwd);
|
||||
virtual String get_cwd() const;
|
||||
|
||||
virtual bool has_environment(const String &p_var) const = 0;
|
||||
virtual String get_environment(const String &p_var) const = 0;
|
||||
|
||||
Reference in New Issue
Block a user