mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-10 12:04:36 -04:00
code style fixes
This commit is contained in:
parent
e0676a3c16
commit
959e1d08c3
2 changed files with 8 additions and 6 deletions
loader/src/load
|
@ -73,19 +73,19 @@ std::string Log::toString(bool logTime) const {
|
|||
std::string res;
|
||||
|
||||
if (logTime) {
|
||||
const auto t = std::chrono::system_clock::to_time_t(this->m_time);
|
||||
const auto t = std::chrono::system_clock::to_time_t(m_time);
|
||||
tm obj;
|
||||
#ifdef _MSC_VER
|
||||
localtime_s(&obj, &t);
|
||||
#else
|
||||
obj = *std::localtime(&t);
|
||||
#endif
|
||||
res += fmt::format("{:%H:%M:%S}", this->m_time);
|
||||
res += fmt::format("{:%H:%M:%S} ", m_time);
|
||||
}
|
||||
|
||||
res += fmt::format("[{}]:", this->m_sender ? this->m_sender->getName() : "?");
|
||||
res += fmt::format("[{}]:", m_sender ? m_sender->getName() : "?");
|
||||
|
||||
for (ComponentTrait* i : this->m_components) {
|
||||
for (auto& i : m_components) {
|
||||
res += i->_toString();
|
||||
}
|
||||
|
||||
|
|
|
@ -89,8 +89,10 @@ Result<ModInfo> ModInfo::createFromSchemaV010(ModJson const& rawJson) {
|
|||
info.m_binaryName = info.m_id + GEODE_PLATFORM_EXTENSION;
|
||||
|
||||
if (root.has("binary")) {
|
||||
log::warn("Warning: [mod.json].binary is deprecated "
|
||||
"and will be removed in the future.");
|
||||
log::warn(
|
||||
"[mod.json].binary is deprecated "
|
||||
"and will be removed in the future."
|
||||
);
|
||||
}
|
||||
|
||||
root.has("binary").asOneOf<value_t::string, value_t::object>();
|
||||
|
|
Loading…
Add table
Reference in a new issue