From 68c4f5f75e09941c94bba5df7f51e7d708f82020 Mon Sep 17 00:00:00 2001 From: PoizenJam Date: Sun, 21 Jan 2024 19:55:37 -0500 Subject: [PATCH] -Add gameStage as game_stage.txt in output directory --- RockSniffer/Configuration/OutputSettings.cs | 3 ++- RockSniffer/Program.cs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RockSniffer/Configuration/OutputSettings.cs b/RockSniffer/Configuration/OutputSettings.cs index 7a262fc..b1efa15 100644 --- a/RockSniffer/Configuration/OutputSettings.cs +++ b/RockSniffer/Configuration/OutputSettings.cs @@ -24,7 +24,8 @@ public OutputSettings() { "song_timer.txt", "%SONG_TIMER%/%SONG_LENGTH%" }, { "notes.txt", "%NOTES_HIT%/%TOTAL_NOTES%" }, { "accuracy.txt", "%CURRENT_ACCURACY%" }, - { "streaks.txt", "%CURRENT_STREAK%/%HIGHEST_STREAK%" } + { "streaks.txt", "%CURRENT_STREAK%/%HIGHEST_STREAK%" }, + { "game_stage.txt", "%GAME_STAGE%" } }; //Convert dictionary to array diff --git a/RockSniffer/Program.cs b/RockSniffer/Program.cs index 01b31c6..3a4f9a0 100644 --- a/RockSniffer/Program.cs +++ b/RockSniffer/Program.cs @@ -377,6 +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); //Write to output WriteTextToFileLocking("output/" + of.filename, outputtext);