godot icon indicating copy to clipboard operation
godot copied to clipboard

Add OS::get_cwd virtual

Open L2750558108 opened this issue 1 year ago • 2 comments

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.

L2750558108 avatar Jan 31 '24 15:01 L2750558108

Please generate documentation by running the compiled editor with --doctool, then fill in the changes made to doc/classes/OS.xml.

Calinou avatar Jan 31 '24 16:01 Calinou

Please generate documentation by running the compiled editor with --doctool, then fill in the changes made to doc/classes/OS.xml.

Do functions that are not registered in the bind_method also need it?

L2750558108 avatar Jan 31 '24 16:01 L2750558108