You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Main: Create user data dir in setup()
Custom backport of #39563 with preliminary change to make
`OS::ensure_user_data_dir()` public as done in f8a79a9.
Fixes #32488.
This commit is contained in:
@@ -460,8 +460,7 @@ OS::ScreenOrientation OS::get_screen_orientation() const {
|
||||
return (OS::ScreenOrientation)_orientation;
|
||||
}
|
||||
|
||||
void OS::_ensure_user_data_dir() {
|
||||
|
||||
void OS::ensure_user_data_dir() {
|
||||
String dd = get_user_data_dir();
|
||||
DirAccess *da = DirAccess::open(dd);
|
||||
if (da) {
|
||||
|
||||
Reference in New Issue
Block a user