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:
Rémi Verschelde 2021-01-08 10:24:41 +01:00
parent 292bbb870f
commit d6fecf7686
No known key found for this signature in database
GPG key ID: C3336907360768E1
8 changed files with 6 additions and 12 deletions

View file

@ -340,8 +340,6 @@ Error OS_UWP::initialize(const VideoMode &p_desired, int p_video_driver, int p_a
ref new TypedEventHandler<Gyrometer ^, GyrometerReadingChangedEventArgs ^>(managed_object, &ManagedType::on_gyroscope_reading_changed);
}
_ensure_user_data_dir();
if (is_keep_screen_on())
display_request->RequestActive();