Skip to content

Commit eb6f445

Browse files
committed
feat(Lua): An uninstallable mod now appears as a warning in the console
1 parent a8d5627 commit eb6f445

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

UE4SS/src/UE4SSProgram.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,19 +1050,19 @@ namespace RC
10501050
if (mod_name_is_taken)
10511051
{
10521052
mod->set_installable(false);
1053-
Output::send(STR("Mod name '{}' is already in use.\n"), mod->get_name());
1053+
Output::send<LogLevel::Warning>(STR("Mod name '{}' is already in use.\n"), mod->get_name());
10541054
continue;
10551055
}
10561056

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

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

0 commit comments

Comments
 (0)