add one log indicator for games (Pluto IW5) that don't log to mods folder even when fs_game is specified.

This commit is contained in:
RaidMax
2021-06-07 16:58:36 -05:00
parent c397fd5479
commit 3a1e8359c2
6 changed files with 26 additions and 12 deletions

View File

@ -1359,13 +1359,13 @@ namespace SharedLibraryCore.Commands
public override async Task ExecuteAsync(GameEvent E)
{
var Response = await E.Owner.ExecuteCommandAsync(E.Data.Trim());
foreach (string S in Response)
var response = await E.Owner.ExecuteCommandAsync(E.Data.Trim());
foreach (var item in response)
{
E.Origin.Tell(S);
E.Origin.Tell(item);
}
if (Response.Length == 0)
if (response.Length == 0)
{
E.Origin.Tell(_translationLookup["COMMANDS_RCON_SUCCESS"]);
}

View File

@ -71,6 +71,12 @@ namespace SharedLibraryCore.Interfaces
/// eg: COD, Source
/// </summary>
string RConEngine { get; }
/// <summary>
/// indicates that the game does not log to the mods folder (when mod is loaded),
/// but rather always to the fs_basegame directory
/// </summary>
bool IsOneLog { get; }
/// <summary>
/// retrieves the value of given dvar key if it exists in the override dict