logging: Fix log filter during initialization

The log filter was being ignored on initialization due to the logging instance being initialized before the config instance, so the log filter was set to its default value.

This fixes that oversight, along with using descriptive exceptions instead of abort() calls.
This commit is contained in:
ameerj 2023-06-24 03:05:04 +03:00 committed by GPUCode
parent a8340395a3
commit 98e9f4c32e
4 changed files with 16 additions and 11 deletions

View file

@ -73,12 +73,7 @@ public:
* Gets the instance of the System singleton class.
* @returns Reference to the instance of the System singleton class.
*/
[[nodiscard]] static System& GetInstance() {
if (!s_instance) {
std::abort();
}
return *s_instance;
}
[[nodiscard]] static System& GetInstance();
static void InitializeGlobalInstance();