Fix Missing Directory
This commit is contained in:
parent
ceb7fb087c
commit
850d9c842b
@ -59,6 +59,7 @@ public class OpenCS2hock
|
|||||||
|
|
||||||
private void OnGSIMessage(string content)
|
private void OnGSIMessage(string content)
|
||||||
{
|
{
|
||||||
|
Directory.CreateDirectory(Path.Combine(Environment.CurrentDirectory, "CS2Events"));
|
||||||
string fileName = Path.Combine(Environment.CurrentDirectory, "CS2Events" ,$"{DateTime.Now.ToLongTimeString().Replace(':','.')}.json");
|
string fileName = Path.Combine(Environment.CurrentDirectory, "CS2Events" ,$"{DateTime.Now.ToLongTimeString().Replace(':','.')}.json");
|
||||||
File.WriteAllText(fileName, content);
|
File.WriteAllText(fileName, content);
|
||||||
_cs2MessageHandler.HandleCS2Message(content);
|
_cs2MessageHandler.HandleCS2Message(content);
|
||||||
|
Loading…
Reference in New Issue
Block a user