Skip to content

Commit

Permalink
CI: Winblows again
Browse files Browse the repository at this point in the history
MSVC why..
  • Loading branch information
DatCaptainHorse committed Mar 20, 2024
1 parent da54b36 commit d2466c6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Source/config.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ struct Config {

auto load() -> Result {
// Check if file exists first
if (!std::filesystem::exists(AssetsHandler::get_assets_path() / "config.json"))
if (!std::filesystem::exists(AssetsHandler::get_assets_path() / "config.json")) {
twitchAuthToken.resize(64);
twitchAuthUser.resize(64);
twitchChannel.resize(64);
return Result();
}

if (const auto ec = glz::read_file_json(
*this, (AssetsHandler::get_assets_path() / "config.json").string(), std::string{}))
Expand All @@ -47,4 +51,4 @@ struct Config {
};

// Global config instance
export inline Config global_config;
export Config global_config;

0 comments on commit d2466c6

Please sign in to comment.