From b42682283e5224a1ffd9f1002507b5e6980c05c5 Mon Sep 17 00:00:00 2001 From: PoizenJam Date: Fri, 26 Jan 2024 12:02:30 -0500 Subject: [PATCH] Revert "-Added a tracker for "game_state" to the output folder OutputSettings.cs" This reverts commit c156c3d43d336c2f9aa182f8b6d9a44f89bf9d71. --- RockSniffer/Configuration/OutputSettings.cs | 3 +-- RockSniffer/Program.cs | 20 +++++++------------- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/RockSniffer/Configuration/OutputSettings.cs b/RockSniffer/Configuration/OutputSettings.cs index f321fda..b1efa15 100644 --- a/RockSniffer/Configuration/OutputSettings.cs +++ b/RockSniffer/Configuration/OutputSettings.cs @@ -25,8 +25,7 @@ public OutputSettings() { "notes.txt", "%NOTES_HIT%/%TOTAL_NOTES%" }, { "accuracy.txt", "%CURRENT_ACCURACY%" }, { "streaks.txt", "%CURRENT_STREAK%/%HIGHEST_STREAK%" }, - { "game_stage.txt", "%GAME_STAGE%" }, - { "game_state.txt", "%GAME_STATE%" } + { "game_stage.txt", "%GAME_STAGE%" } }; //Convert dictionary to array diff --git a/RockSniffer/Program.cs b/RockSniffer/Program.cs index 603b4b4..3a4f9a0 100644 --- a/RockSniffer/Program.cs +++ b/RockSniffer/Program.cs @@ -13,9 +13,7 @@ using System.Diagnostics; using System.Drawing; using System.Drawing.Imaging; -using System.Drawing.Text; using System.IO; -using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; @@ -23,7 +21,7 @@ namespace RockSniffer { - class Program + class Program { internal const string version = "0.4.2"; @@ -42,7 +40,6 @@ class Program private RSMemoryReadout memReadout = new RSMemoryReadout(); private SongDetails details = new SongDetails(); private DiscordRPCHandler rpcHandler; - string gameState; static void Main(string[] args) { @@ -280,19 +277,17 @@ public void Run() break; } - gameState = sniffer.currentState.ToString(); OutputDetails(); //GOTTA GO FAST - Thread.Sleep(100); + Thread.Sleep(1000); - //if (random.Next(1000) == 0) - //{ - // Console.WriteLine("*sniff sniff*"); - //} + if (random.Next(100) == 0) + { + Console.WriteLine("*sniff sniff*"); + } } - sniffer.Stop(); //Clean up as best as we can @@ -382,8 +377,7 @@ private void OutputDetails() outputtext = outputtext.Replace("%NOTES_MISSED%", nd.TotalNotesMissed.ToString()); outputtext = outputtext.Replace("%TOTAL_NOTES%", nd.TotalNotes.ToString()); outputtext = outputtext.Replace("%CURRENT_ACCURACY%", FormatPercentage(nd.Accuracy)); - outputtext = outputtext.Replace("%GAME_STAGE%", memReadout.gameStage); - outputtext = outputtext.Replace("%GAME_STATE%", gameState); + outputtext = outputtext.Replace("%GAME_STAGE%", memReadout.gameStage); //Write to output WriteTextToFileLocking("output/" + of.filename, outputtext);