Prevent crash when we can't write to editor cache or config path
Created by: akien-mga
This can happen if users somehow got wrong user permissions assigned to
their Godot cache, config or data paths (e.g. ~/.config/godot
).
The error messages should give them a hint as to what the issue may be.
Fixes #33199 (closed).
There may be other situations that still lead to a crash, we need to
review all uses of FileAccess::open
with FileAccess::WRITE
mode to
ensure that proper pointer validation is done.