Add error message when trying to load project from CWD.

This commit is contained in:
Pāvels Nadtočajevs 2025-11-16 10:09:23 +02:00
parent 8deb221829
commit a7358ddd12
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
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;