Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pentarctagon committed Jun 21, 2024
1 parent 0170c0f commit 5be4650
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/preferences/preferences.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/

#pragma once

#include "log.hpp"
#include "config.hpp"
#include "filesystem.hpp"
#include "game_config.hpp"
Expand Down Expand Up @@ -207,7 +207,8 @@ class prefs
// macos - called "unit_tests"
// others - called "boost_unit_tests"
static bool called_before_init = !(filesystem::base_name(filesystem::get_exe_path()).find("unit_tests") == std::string::npos && !filesystem::is_userdata_initialized());
assert(called_before_init && filesystem::get_exe_path().c_str());
PLAIN_LOG << filesystem::base_name(filesystem::get_exe_path());
assert(called_before_init && "Attempt to use preferences before userdata initialization");

static prefs prefs_manager;
return prefs_manager;
Expand Down

0 comments on commit 5be4650

Please sign in to comment.