Skip to content

Commit

Permalink
Prerelease 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bbepis committed Dec 18, 2015
1 parent 6561889 commit 3cb5ce3
Show file tree
Hide file tree
Showing 6 changed files with 452 additions and 70 deletions.
1 change: 1 addition & 0 deletions 7z.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public static Mod Index(string filename)
m.size = 0;
}
m.Properties["Estimated Size"] = (m.size / (1024)).ToString("#,## kB");
m.InstallTime = new DateTime(1991, 9, 8);
return m;
}
/// <summary>
Expand Down
10 changes: 9 additions & 1 deletion Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
Pre5.1
Pre5.2
+ Merged Wizzard Migrator into the main program
+ Added a (proper) logging system
+ Added the ability to be able to cancel an operation (provided it's at a possible time)
+ Added tracking for when mods have been installed
+ Added a warning when collisions are detected and how the user can resolve it
+ Added the option to switch between sorting via name or install date

Pre5.1
+ Fixed wrong progress counter when reverting mods
+ Fixed issues with using the Wizzard Migrator
+ Fixed other small issues
Expand Down
16 changes: 9 additions & 7 deletions SerializableDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@ public class SerializableDictionary<TValue>

public bool IsReadOnly => false;

private string getKey(string key) => key.ToLower().Remove(0, key.ToLower().LastIndexOf('\\') + 1);

public TValue this[string key]
{
get
{
return baseDict[key.ToLower()];
return baseDict[getKey(key)];
}

set
{
baseDict[key.ToLower()] = value;
baseDict[getKey(key)] = value;
}
}
#region IXmlSerializable Members
Expand Down Expand Up @@ -87,18 +89,18 @@ public void WriteXml(System.Xml.XmlWriter writer)
#endregion
public void Add(string key, TValue value)
{
baseDict.Add(key.ToLower(), value);
baseDict.Add(getKey(key), value);
}

public bool ContainsKey(string key) => baseDict.ContainsKey(key.ToLower());
public bool ContainsKey(string key) => baseDict.ContainsKey(getKey(key));

public bool Remove(string key) => baseDict.Remove(key.ToLower());
public bool Remove(string key) => baseDict.Remove(getKey(key));

public bool TryGetValue(string key, out TValue value) => baseDict.TryGetValue(key.ToLower(), out value);
public bool TryGetValue(string key, out TValue value) => baseDict.TryGetValue(getKey(key), out value);

public void Add(KeyValuePair<string, TValue> item)
{
baseDict.Add(item.Key.ToLower(), item.Value);
baseDict.Add(getKey(item.Key), item.Value);
}

public void Clear()
Expand Down
162 changes: 161 additions & 1 deletion formMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3cb5ce3

Please sign in to comment.