Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Plugins/RSBot.Log/Views/Main.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.ComponentModel;
using System.IO;
using System.Windows.Forms;
Expand Down Expand Up @@ -50,7 +50,9 @@ public void AppendLog(string message, LogLevel level = LogLevel.Notify)
Kernel.BasePath,
"User",
"Logs",
Game.Player == null ? "Environment" : Game.Player.Name,
Game.Player == null
? "Environment"
: $"{RSBot.Core.Components.ProfileManager.SelectedProfile}-{Game.Player.Name}",
$"{DateTime.Now:dd-MM-yyyy}.txt"
);

Expand Down
5 changes: 3 additions & 2 deletions Plugins/RSBot.Python/Components/API/Core/Config/API.Config.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System.IO;
using System.IO;
using System.Windows.Forms;
using Python.Runtime;
using RSBot.Core;
using RSBot.Core.Components;
using RSBot.Python.Components.API.Interface;
using RSBot.Python.Views;

Expand Down Expand Up @@ -51,7 +52,7 @@ private string GetLogPath()
{
return Path.Combine(projectDir, "User", "Logs");
}
return Path.Combine(projectDir, "User", "Logs", Game.Player.Name);
return Path.Combine(projectDir, "User", "Logs", $"{ProfileManager.SelectedProfile}-{Game.Player.Name}");
}

public string get_config_dir()
Expand Down
Loading