Merge pull request #112844 from bruvzg/cwd_error

Add error message when trying to load project from CWD.
This commit is contained in:
Thaddeus Crews
2025-11-21 18:37:29 -06:00
7 changed files with 43 additions and 2 deletions

View File

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

View File

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