Skip to content

Commit

Permalink
Update Instance.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Madman10K authored Oct 24, 2024
1 parent 143b9d9 commit 66dfb71
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/Instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ void UntitledGameSystemManager::Instance::loadConfigData()
if (a["container"] && a["pins"])
{
containers.emplace_back();
for (auto& f : a["pins"].as<std::vector<std::string>>())
for (auto& f : a["pins"].as<UImGui::TVector<UImGui::FString>>())
containers.back().pins.emplace_back( f, false );
containers.back().name = a["container"].as<std::string>();
containers.back().name = a["container"].as<UImGui::FString>();
}
else
{
Expand All @@ -122,15 +122,15 @@ every member of the "containers" array having a "container" and "pins" key:
- arma3-unix-launcher
- discord
<endfile>
File in question: )", UVKLog::UVK_LOG_TYPE_ERROR, configDir, "config/layout.yaml");
File in question: )", ULOG_LOG_TYPE_ERROR, configDir, "config/layout.yaml");
std::terminate();
}
}
}
else
{
Logger::log("The config file isn't formatted correctly, it starts with a \"containers\" key that stores"
"an array of containers in YAML. File: ", UVKLog::UVK_LOG_TYPE_ERROR, configDir, "config/layout.yaml");
"an array of containers in YAML. File: ", ULOG_LOG_TYPE_ERROR, configDir, "config/layout.yaml");
std::terminate();
}
}
Expand All @@ -144,7 +144,7 @@ YAML::Node UntitledGameSystemManager::Instance::loadConfigGeneric() noexcept
}
catch (YAML::BadFile&)
{
Logger::log("Couldn't open the config file at: ", UVKLog::UVK_LOG_TYPE_ERROR, configDir, "config/layout.yaml");
Logger::log("Couldn't open the config file at: ", ULOG_LOG_TYPE_ERROR, configDir, "config/layout.yaml");
std::terminate();
}
return out;
Expand Down

0 comments on commit 66dfb71

Please sign in to comment.