mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Add error message when trying to load project from CWD.
This commit is contained in:
parent
8deb221829
commit
a7358ddd12
7 changed files with 43 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue