godot
godot copied to clipboard
Add OS::get_cwd virtual
It seems that we get current working directory by creating a DirAccess without path init and use get_current_dir(). It doesn't look intuitive. In fact, the DirAccess finally calls the cwd getting function of specific platform. This PR move them to the OS::get_cwd virtual.
Please generate documentation by running the compiled editor with --doctool
, then fill in the changes made to doc/classes/OS.xml
.
Please generate documentation by running the compiled editor with
--doctool
, then fill in the changes made todoc/classes/OS.xml
.
Do functions that are not registered in the bind_method also need it?