Skip to content
Permalink
Browse files

- fixed Quick Add to work with directory names that contain '.' periods

- fixed representative arrangement bug
  • Loading branch information...
cozy1 committed May 21, 2019
1 parent 7375af8 commit a6a668c91df9172c44c56486ec3f8289e9557b14
@@ -29,5 +29,5 @@
//
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.2.0")]
[assembly: AssemblyInformationalVersion("8c0983e6")]
[assembly: AssemblyInformationalVersion("7375af81")]
[assembly: AssemblyConfiguration("")]
@@ -1,5 +1,7 @@
Rocksmith Toolkit Release Notes

- fixed Quick Add to work with directory names that contain '.' periods
- fixed representative arrangement bug
- DDC tab menu reports errors correctly instead of throwing a misleading exception
- Import Package will autosave xml template if General Config>Autosave Templates is enabled
(turn off autosave if you do not want to unknowingly overwrite existing xml templates)
@@ -137,9 +137,9 @@ public AttributesHeader2014(string arrangementFileName, Arrangement arrangement,
EasyMastery = Math.Round((double)(NotesEasy / NotesHard), 9);
MediumMastery = Math.Round((double)(NotesMedium / NotesHard), 9);
Metronome = arrangement.Metronome == Sng.Metronome.None ? null : (int?)arrangement.Metronome;
// TODO: check for bug here
// if there is an equivalent bonus arrangement then Representative is set to "1" otherwise "0"
Representative = Convert.ToInt32(!arrangement.BonusArr);
// TODO: monitor this change
// Representative = Convert.ToInt32(!arrangement.BonusArr);
Representative = arrangement.ArrangementPropeties.Represent;
RouteMask = (int)arrangement.RouteMask;

ManifestFunctions.GetSongDifficulty(this, song2014);
@@ -180,9 +180,9 @@ public string InitTreeViewBrowser()
InitDefaultFolders();
// de-activate EH's
ToggleEventHandlers(false);

RestoreTreeView(new List<string>() { InitialDirectory }, "\\", out errMsg);

// re- activate EH's
ToggleEventHandlers(true); // this trashes the InitialDirectory Restore

@@ -294,7 +294,13 @@ private void AddNodes(TreeView treeView, TreeNode node)

foreach (var dir in directories)
{
node.Nodes.Add(new TreeNode(Path.GetFileNameWithoutExtension(dir))
// GetFileNameWithoutExtension method does not work with directory names that contain '.' periods
// node.Nodes.Add(new TreeNode(Path.GetFileNameWithoutExtension(dir))
// alt method
// node.Nodes.Add(new TreeNode(Path.GetFileName(dir))
var ndx = dir.LastIndexOf(Path.DirectorySeparatorChar);
var dirName = dir.Substring(ndx + 1);
node.Nodes.Add(new TreeNode(dirName)
{
Tag = dir,
ImageIndex = 0,
@@ -694,6 +700,9 @@ public void RestoreTreeView(List<string> paths, string separator, out string err

for (int i = 1; i < pathParts.Count(); i++)
{
//var textNode = Path.Combine(childNode.Tag.ToString(), pathParts[i]);
//TreeNode subNode = new TreeNode(textNode);

var subNode = childNode.Nodes.Cast<TreeNode>().FirstOrDefault(n => n.Text == pathParts[i]);
if (subNode != null)
{
@@ -27,5 +27,5 @@
//
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.2.0")]
[assembly: AssemblyInformationalVersion("8c0983e6")]
[assembly: AssemblyInformationalVersion("7375af81")]
[assembly: AssemblyConfiguration("")]
@@ -29,5 +29,5 @@
//
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.2.0")]
[assembly: AssemblyInformationalVersion("8c0983e6")]
[assembly: AssemblyInformationalVersion("7375af81")]
[assembly: AssemblyConfiguration("")]
@@ -1,3 +1,3 @@
2.9.2.0
8c0983e6
7375af81

0 comments on commit a6a668c

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