Skip to content
This repository has been archived by the owner on Apr 25, 2022. It is now read-only.

Commit

Permalink
Version 20.4:
Browse files Browse the repository at this point in the history
- Added feature to backup user created data files to restore after modpack installation (like session stats)
- Improved downlader UI
- Other code optimizations
- Updated database
- Created retry loop for extraction error display of when you have an explorer window in res_mods and need to close it.
  • Loading branch information
Willster419 committed Mar 12, 2017
1 parent c44652f commit 851aa0f
Show file tree
Hide file tree
Showing 9 changed files with 402 additions and 124 deletions.
27 changes: 27 additions & 0 deletions RelicModManager/CRCFileSizeUpdate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,24 @@ private void createModStructure2(string databaseFilePath)
case "devURL":
m.devURL = nn.InnerText;
break;
case "userDatas":
foreach (XmlNode nnnnnnn in nn.ChildNodes)
{

switch (nnnnnnn.Name)
{
case "userData":
string innerText = nnnnnnn.InnerText;
if (innerText == null)
continue;
if (innerText.Equals(""))
continue;
m.userFiles.Add(innerText);
break;
}

}
break;
case "pictures":
//parse every picture
foreach (XmlNode nnnnnnn in nn.ChildNodes)
Expand Down Expand Up @@ -538,6 +556,15 @@ private void saveDatabase(string saveLocation)
XmlElement modEnabled = doc.CreateElement("enabled");
modEnabled.InnerText = "" + m.enabled;
modRoot.AppendChild(modEnabled);
//datas for the mods
XmlElement modDatas = doc.CreateElement("userDatas");
foreach (string s in m.userFiles)
{
XmlElement userData = doc.CreateElement("userData");
userData.InnerText = s;
modDatas.AppendChild(userData);
}
modRoot.AppendChild(modDatas);
//pictures for the mods
XmlElement modPictures = doc.CreateElement("pictures");
foreach (Picture p in m.picList)
Expand Down
39 changes: 28 additions & 11 deletions RelicModManager/MainWindow.Designer.cs

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

Loading

0 comments on commit 851aa0f

Please sign in to comment.