Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve storage initialization and error handling, refactoring
Add checks to ensure that: - The first storage path, i.e. the path of the designated user directory, is added to the storage successfully. - The folder of the user directory is created successfully (or already exists). - The default folders inside the user directory are created successfully (or already exist). On failure, the client/server will quit immediately on launch. The client will quit with an error message popup showing the log messages of the failed storage initialization. Closes ddnet#3758, which presumably was caused by the user directory not being accessible. Closes ddnet#9165. Refactoring: - Consistently use the `log_` functions for logging. - Extract functions in `CStorage` to improve readability. - Add `enum class EInitializationType` for storage initialization.
- Loading branch information