Skip to content

Commit

Permalink
Fixed discrepency in the folder name to save/load replay data.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robertsmania committed Oct 18, 2023
1 parent 50bcdaf commit 30a3199
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions RobertsmaniaReplay/VAPlugin_RobertsmaniaReplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1391,14 +1391,15 @@ public static void LoadMarkers()
// Get the "My Documents" folder path
string myDocumentsPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);

// Reference the folder named "PitGirlReplays"
string inputFolderPath = Path.Combine(myDocumentsPath, "PitGirlReplays");
// Reference the folder named "RobertsmaniaReplays"
string inputFolderPath = Path.Combine(myDocumentsPath, "RobertsmaniaReplays");

string fileName = $"markers_{g_SubSessionID}.json";

if (!File.Exists(Path.Combine(inputFolderPath, fileName)))
{
_vaProxy.WriteToLog("No marker data found", "red");
_vaProxy.WriteToLog(Path.Combine(inputFolderPath, fileName), "red");
return;
}

Expand Down Expand Up @@ -1616,7 +1617,7 @@ public static void VA_Init1(dynamic vaProxy)
_iRSDKWrapper.TelemetryUpdateFrequency = cUpdatesPerSec;
_iRSDKWrapper.Start();

//seems clumsy but there is no default constror for structs
//seems clumsy but there is no default constructor for structs
//TODO any other data structures need intialiaztion?
for (int i = 0; i < g_Drivers.Length; i++)
{
Expand Down

0 comments on commit 30a3199

Please sign in to comment.