Skip to content

Commit

Permalink
- Changed dlc.xml template autosave so that it occurs on application …
Browse files Browse the repository at this point in the history
…exit.
  • Loading branch information
cozy1 committed Apr 30, 2017
1 parent 6400359 commit 4a3e7bc
Show file tree
Hide file tree
Showing 8 changed files with 116 additions and 117 deletions.
5 changes: 3 additions & 2 deletions RocksmithTookitGUI/Config/GeneralConfig.Designer.cs

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

11 changes: 0 additions & 11 deletions RocksmithTookitGUI/Config/GeneralConfig.resx
Expand Up @@ -120,17 +120,6 @@
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="creator_autosavetemplate.ToolTip" xml:space="preserve">
<value>If checked, automatically save template
'.dlc.xml' files when the user leaves the
CDLC Creator or exits the application.

WARNING
------------
If uncheck, templates must be saved
manually by pressing 'Save Template'
button.</value>
</data>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>41</value>
</metadata>
Expand Down

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

126 changes: 59 additions & 67 deletions RocksmithTookitGUI/DLCPackageCreator/DLCPackageCreator.cs

Large diffs are not rendered by default.

49 changes: 30 additions & 19 deletions RocksmithTookitGUI/MainForm.Designer.cs

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

5 changes: 5 additions & 0 deletions RocksmithTookitGUI/MainForm.cs
Expand Up @@ -198,6 +198,10 @@ public void ReloadControls()

private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
{
// autosave the dlc.xml template on closing
if (dlcPackageCreator1.IsDirty && ConfigRepository.Instance().GetBoolean("creator_autosavetemplate"))
dlcPackageCreator1.SaveTemplateFile(dlcPackageCreator1.UnpackedDir, false);

// cleanup temp folder garbage carefully
#if !DEBUG
var di = new DirectoryInfo(Path.GetTempPath());
Expand Down Expand Up @@ -266,5 +270,6 @@ private void ShowHelpForm()
}
}


}
}

0 comments on commit 4a3e7bc

Please sign in to comment.