Skip to content

Commit

Permalink
Added advanced settings for the overlay
Browse files Browse the repository at this point in the history
Saving it is not done yet
  • Loading branch information
Traderain committed Nov 14, 2016
1 parent 5f74009 commit 665ca78
Show file tree
Hide file tree
Showing 6 changed files with 795 additions and 26 deletions.
Binary file modified .vs/VolvoWrench/v14/.suo
Binary file not shown.
4 changes: 1 addition & 3 deletions VolvoWrench/Demo stuff/CrossDemoParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ public static CrossParseResult Parse(string filename)
case Parseresult.Source:
cpr.Type = Parseresult.Source;
var fi = new FileInfo(filename);
using (
var mmf = MemoryMappedFile.CreateFromFile(filename, FileMode.Open, "sourcemap", fi.Length,
MemoryMappedFileAccess.ReadWrite))
using (var mmf = MemoryMappedFile.CreateFromFile(filename, FileMode.Open, "sourcemap", fi.Length,MemoryMappedFileAccess.ReadWrite))
using (var cfs = mmf.CreateViewStream())
{
var a = new SourceParser(cfs);
Expand Down
6 changes: 4 additions & 2 deletions VolvoWrench/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ public static void SettingsManager(bool reset)
{
var cvt = new FontConverter();
var parser = new FileIniDataParser();
IniData data = parser.ReadFile(SettingsPath);
var data = parser.ReadFile(SettingsPath);
DemoPopupKey = ToInt32(data["HOTKEYS"]["demo_popup"],16);
OverLayExitKey = ToInt32(data["HOTKEYS"]["overlay_exit"],16);
OverLayRescanKey = ToInt32(data["HOTKEYS"]["overlay_rescan"],16);
Expand Down Expand Up @@ -509,7 +509,9 @@ public void PrintDemoDetails(CrossParseResult demo)
richTextBox1.AppendText("\n" + err);
UpdateForm();
}

if (MessageBox.Show("Would you like to open the demo doctor?", "Demo errors detected!", MessageBoxButtons.YesNo) == DialogResult.Yes)
using (var dd = new Demo_doctor(CurrentFile))
dd.ShowDialog();
}
else
{
Expand Down
Loading

0 comments on commit 665ca78

Please sign in to comment.