Skip to content
Permalink
Browse files

- revert

  • Loading branch information
cozy1 committed Oct 18, 2019
1 parent 346bf9b commit 0f686686ce910f3ca118bae66b65cc187d3fd139
Showing with 7 additions and 7 deletions.
  1. +2 −2 RocksmithToolkitLib/Sng/Sng2014FileWriter.cs
  2. +5 −5 RocksmithToolkitLib/ToolkitVersion.cs
@@ -996,7 +996,7 @@ private void parseArrangements(Song2014 xml, Sng2014File sng)
var piter = xml.PhraseIterations[j];

// fix for 100% bug issue and improve mastery
if (piter.Time > note.Time) // && j > 0)
if (piter.Time > note.Time && j > 0)
{
if (note.Ignore == 0)
++a.NotesInIteration1[j - 1];
@@ -1029,7 +1029,7 @@ private void parseArrangements(Song2014 xml, Sng2014File sng)
var piter = xml.PhraseIterations[j];

// fix for 100% bug issue and improve mastery
if (piter.Time > chord.Time) // && j > 0)
if (piter.Time > chord.Time && j > 0)
{
if (chord.Ignore == 0)
++a.NotesInIteration1[j - 1];
@@ -84,12 +84,12 @@ public static bool IsRSTKLibValid()
{
// return false;
var rstkLibPath = typeof(RocksmithToolkitLib.ToolkitVersion).Assembly.Location;
var libDate = File.GetCreationTime(rstkLibPath);
// use UTC to avoid regional DateTime issues
DateTime dtNow = DateTime.UtcNow;
DateTime dtLib = libDate.ToUniversalTime();
var dtuLib = File.GetCreationTimeUtc(rstkLibPath);

if (dtNow > dtLib.AddDays(30))
// using UTC to avoid regional DateTime issues
DateTime dtuNow = DateTime.UtcNow;

if (dtuNow > dtuLib.AddDays(30))
return false;

return true;

0 comments on commit 0f68668

Please sign in to comment.
You can’t perform that action at this time.