Write CS2 Events to seperate directory

This commit is contained in:
glax 2024-01-14 00:30:59 +01:00
parent 6eb1c2c25a
commit bd41858a17

View File

@ -59,7 +59,7 @@ public class OpenCS2hock
private void OnGSIMessage(string content)
{
string fileName = Path.Combine(Environment.CurrentDirectory, $"{DateTime.Now.ToLongTimeString().Replace(':','.')}.json");
string fileName = Path.Combine(Environment.CurrentDirectory, "CS2Events" ,$"{DateTime.Now.ToLongTimeString().Replace(':','.')}.json");
File.WriteAllText(fileName, content);
Console.WriteLine(fileName);
_cs2MessageHandler.HandleCS2Message(content);