Update submodules

This commit is contained in:
Jack Andersen 2019-07-20 22:42:03 -10:00
parent 6988f86672
commit 08d15514a9
3 changed files with 7 additions and 7 deletions

2
hecl/extern/athena vendored

@ -1 +1 @@
Subproject commit 478d75f1cb6ff25fbbd0d22357b6de395c3ab662 Subproject commit 0ada695c7a9a774a233211fe73e86b0779c3073a

2
hecl/extern/boo vendored

@ -1 +1 @@
Subproject commit deefc8e99520ffacd0d70c27a6beeb1047a0c131 Subproject commit ae5d7e51316d149e1f52ff715a7e72a5c6906db5

View File

@ -209,7 +209,7 @@ void CVarManager::setCVar(Console* con, const std::vector<std::string>& args) {
std::string cvName = args[0]; std::string cvName = args[0];
athena::utility::tolower(cvName); athena::utility::tolower(cvName);
if (m_cvars.find(cvName) == m_cvars.end()) { 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; return;
} }
@ -225,9 +225,9 @@ void CVarManager::setCVar(Console* con, const std::vector<std::string>& args) {
return; return;
if (!cv->fromLiteralToType(value)) 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 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<std::string>& args) { void CVarManager::getCVar(Console* con, const std::vector<std::string>& args) {
@ -239,12 +239,12 @@ void CVarManager::getCVar(Console* con, const std::vector<std::string>& args) {
std::string cvName = args[0]; std::string cvName = args[0];
athena::utility::tolower(cvName); athena::utility::tolower(cvName);
if (m_cvars.find(cvName) == m_cvars.end()) { 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; return;
} }
const auto& cv = m_cvars[cvName]; 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) { void CVarManager::setDeveloperMode(bool v, bool setDeserialized) {