Skip to content

Commit

Permalink
-Add gameStage as game_stage.txt in output directory
Browse files Browse the repository at this point in the history
  • Loading branch information
PoizenJam committed Jan 22, 2024
1 parent 24ac6f2 commit 68c4f5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RockSniffer/Configuration/OutputSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions RockSniffer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 68c4f5f

Please sign in to comment.