Skip to content

Commit

Permalink
Revert "-Added a tracker for "game_state" to the output folder Output…
Browse files Browse the repository at this point in the history
…Settings.cs"

This reverts commit c156c3d.
  • Loading branch information
PoizenJam committed Jan 26, 2024
1 parent 4b315f6 commit b426822
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
3 changes: 1 addition & 2 deletions RockSniffer/Configuration/OutputSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 7 additions & 13 deletions RockSniffer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,15 @@
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;
using System.Threading;

namespace RockSniffer
{
class Program
class Program
{
internal const string version = "0.4.2";

Expand All @@ -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)
{
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit b426822

Please sign in to comment.