diff --git a/hecl/extern/athena b/hecl/extern/athena index 478d75f1c..0ada695c7 160000 --- a/hecl/extern/athena +++ b/hecl/extern/athena @@ -1 +1 @@ -Subproject commit 478d75f1cb6ff25fbbd0d22357b6de395c3ab662 +Subproject commit 0ada695c7a9a774a233211fe73e86b0779c3073a diff --git a/hecl/extern/boo b/hecl/extern/boo index deefc8e99..ae5d7e513 160000 --- a/hecl/extern/boo +++ b/hecl/extern/boo @@ -1 +1 @@ -Subproject commit deefc8e99520ffacd0d70c27a6beeb1047a0c131 +Subproject commit ae5d7e51316d149e1f52ff715a7e72a5c6906db5 diff --git a/hecl/lib/CVarManager.cpp b/hecl/lib/CVarManager.cpp index 11e89dc73..a7d6005eb 100644 --- a/hecl/lib/CVarManager.cpp +++ b/hecl/lib/CVarManager.cpp @@ -209,7 +209,7 @@ void CVarManager::setCVar(Console* con, const std::vector& args) { std::string cvName = args[0]; athena::utility::tolower(cvName); if (m_cvars.find(cvName) == m_cvars.end()) { - con->report(Console::Level::Error, fmt("CVar '%s' does not exist"), args[0].c_str()); + con->report(Console::Level::Error, fmt("CVar '{}' does not exist"), args[0]); return; } @@ -225,9 +225,9 @@ void CVarManager::setCVar(Console* con, const std::vector& args) { return; if (!cv->fromLiteralToType(value)) - con->report(Console::Level::Warning, fmt("Unable to set cvar '%s' to value '%s'"), cv->name().data(), value.c_str()); + con->report(Console::Level::Warning, fmt("Unable to set cvar '{}' to value '{}'"), cv->name(), value); else - con->report(Console::Level::Info, fmt("Set '%s' from '%s' to '%s'"), cv->name().data(), oldVal.c_str(), value.c_str()); + con->report(Console::Level::Info, fmt("Set '{}' from '{}' to '{}'"), cv->name(), oldVal, value); } void CVarManager::getCVar(Console* con, const std::vector& args) { @@ -239,12 +239,12 @@ void CVarManager::getCVar(Console* con, const std::vector& args) { std::string cvName = args[0]; athena::utility::tolower(cvName); if (m_cvars.find(cvName) == m_cvars.end()) { - con->report(Console::Level::Error, fmt("CVar '%s' does not exist"), args[0].c_str()); + con->report(Console::Level::Error, fmt("CVar '{}' does not exist"), args[0]); return; } const auto& cv = m_cvars[cvName]; - con->report(Console::Level::Info, fmt("'%s' = '%s'"), cv->name().data(), cv->value().c_str()); + con->report(Console::Level::Info, fmt("'{}' = '{}'"), cv->name(), cv->value()); } void CVarManager::setDeveloperMode(bool v, bool setDeserialized) {