mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-04 01:01:00 -04:00
fix unformmated log::log functions
This commit is contained in:
parent
851b87acc8
commit
377aa3f7ce
6 changed files with 9 additions and 8 deletions
loader/src
|
@ -9,7 +9,7 @@ class $modify(AppDelegate) {
|
|||
|
||||
auto r = Loader::get()->saveSettings();
|
||||
if (!r) {
|
||||
log::log(Severity::Error, Loader::getInternalMod(), r.error());
|
||||
log::log(Severity::Error, Loader::getInternalMod(), "{}", r.error());
|
||||
}
|
||||
|
||||
log::log(Severity::Info, Loader::getInternalMod(), "Saved");
|
||||
|
|
|
@ -42,7 +42,7 @@ InternalMod::InternalMod() : Mod(getInternalModInfo()) {
|
|||
|
||||
auto sett = this->loadSettings();
|
||||
if (!sett) {
|
||||
log::log(Severity::Error, this, sett.error());
|
||||
log::log(Severity::Error, this, "{}", sett.error());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ bool InternalLoader::loadHooks() {
|
|||
for (auto const& hook : internalHooks()) {
|
||||
auto res = hook.mod->addHook(hook.hook);
|
||||
if (!res) {
|
||||
log::log(Severity::Error, hook.mod, res.error());
|
||||
log::log(Severity::Error, hook.mod, "{}", res.error());
|
||||
thereWereErrors = true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -78,7 +78,8 @@ Result<> Mod::loadSettings() {
|
|||
log::log(
|
||||
Severity::Warning,
|
||||
this,
|
||||
"Encountered unknown setting \"" + key + "\" while loading settings"
|
||||
"Encountered unknown setting \"{}\" while loading settings",
|
||||
key
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -382,13 +383,13 @@ bool Mod::updateDependencyStates() {
|
|||
auto r = dep.m_mod->load();
|
||||
if (!r) {
|
||||
dep.m_state = ModResolveState::Unloaded;
|
||||
log::log(Severity::Error, dep.m_mod, r.error());
|
||||
log::log(Severity::Error, dep.m_mod, "{}", r.error());
|
||||
}
|
||||
else {
|
||||
auto r = dep.m_mod->enable();
|
||||
if (!r) {
|
||||
dep.m_state = ModResolveState::Disabled;
|
||||
log::log(Severity::Error, dep.m_mod, r.error());
|
||||
log::log(Severity::Error, dep.m_mod, "{}", r.error());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -8,7 +8,7 @@ std::string g_lastError = "";
|
|||
|
||||
void geode_mod_log(void* cmod, const char* message) {
|
||||
auto mod = reinterpret_cast<Mod*>(cmod);
|
||||
log::log(Severity::Debug, mod, message);
|
||||
log::log(Severity::Debug, mod, "{}", message);
|
||||
}
|
||||
|
||||
bool geode_mod_add_hook(void* cmod, void* address, void* detour) {
|
||||
|
|
|
@ -41,7 +41,7 @@ Result<Mod*> Loader::loadModFromFile(std::string const& path) {
|
|||
|
||||
auto sett = mod->loadSettings();
|
||||
if (!sett) {
|
||||
log::log(Severity::Error, mod, sett.error());
|
||||
log::log(Severity::Error, mod, "{}", sett.error());
|
||||
}
|
||||
|
||||
// enable mod if needed
|
||||
|
|
Loading…
Add table
Reference in a new issue