Skip to content

Commit

Permalink
feat(Lua): An uninstallable mod now appears as a warning in the console
Browse files Browse the repository at this point in the history
  • Loading branch information
UE4SS committed Dec 14, 2024
1 parent a8d5627 commit eb6f445
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions UE4SS/src/UE4SSProgram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1050,19 +1050,19 @@ namespace RC
if (mod_name_is_taken)
{
mod->set_installable(false);
Output::send(STR("Mod name '{}' is already in use.\n"), mod->get_name());
Output::send<LogLevel::Warning>(STR("Mod name '{}' is already in use.\n"), mod->get_name());
continue;
}

if (mod->is_installed())
{
Output::send(STR("Tried to install a mod that was already installed, Mod: '{}'\n"), mod->get_name());
Output::send<LogLevel::Warning>(STR("Tried to install a mod that was already installed, Mod: '{}'\n"), mod->get_name());
continue;
}

if (!mod->is_installable())
{
Output::send(STR("Was unable to install mod '{}' for unknown reasons. Mod is not installable.\n"), mod->get_name());
Output::send<LogLevel::Warning>(STR("Was unable to install mod '{}' for unknown reasons. Mod is not installable.\n"), mod->get_name());
continue;
}

Expand Down

0 comments on commit eb6f445

Please sign in to comment.