Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit c3ca83a

Browse files
committed
update
1 parent 527623b commit c3ca83a

File tree

59 files changed

+4486
-1813
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+4486
-1813
lines changed

.gitignore

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
/SOURCE/DwarfFortressModMerger.6.0.ReSharper.user
3-
/SOURCE/_ReSharper.DwarfFortressModMerger
4-
/SOURCE/DwarfFortressModMerger/obj
5-
/SOURCE/DwarfFortressModMerger/bin
1+
*.suo
2+
bin
3+
obj
Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<OutputType>WinExe</OutputType>
1010
<AppDesignerFolder>Properties</AppDesignerFolder>
1111
<RootNamespace>DwarfFortressModMerger</RootNamespace>
12-
<AssemblyName>DwarfFortressModMerger</AssemblyName>
12+
<AssemblyName>Dwarf-Fortress-Mod-Merger</AssemblyName>
1313
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
1414
<TargetFrameworkProfile>
1515
</TargetFrameworkProfile>
@@ -43,16 +43,8 @@
4343
<ApplicationIcon>j.ico</ApplicationIcon>
4444
</PropertyGroup>
4545
<ItemGroup>
46-
<Reference Include="ANDREICSLIB, Version=1.0.80.0, Culture=neutral, processorArchitecture=MSIL">
47-
<HintPath>..\packages\ANDREICSLIB.1.0.80.0\lib\net451\ANDREICSLIB.dll</HintPath>
48-
<Private>True</Private>
49-
</Reference>
50-
<Reference Include="ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
51-
<HintPath>..\packages\SharpZipLib.0.86.0\lib\20\ICSharpCode.SharpZipLib.dll</HintPath>
52-
<Private>True</Private>
53-
</Reference>
54-
<Reference Include="Newtonsoft.Json, Version=8.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
55-
<HintPath>..\packages\Newtonsoft.Json.8.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
46+
<Reference Include="ANDREICSLIB, Version=1.0.104.0, Culture=neutral, processorArchitecture=MSIL">
47+
<HintPath>packages\ANDREICSLIB.1.0.104.0\lib\net451\ANDREICSLIB.dll</HintPath>
5648
<Private>True</Private>
5749
</Reference>
5850
<Reference Include="System" />
@@ -78,11 +70,6 @@
7870
</Compile>
7971
<Compile Include="Program.cs" />
8072
<Compile Include="Properties\AssemblyInfo.cs" />
81-
<Compile Include="Service References\ServiceReference1\Reference.cs">
82-
<AutoGen>True</AutoGen>
83-
<DesignTime>True</DesignTime>
84-
<DependentUpon>Reference.svcmap</DependentUpon>
85-
</Compile>
8673
<EmbeddedResource Include="Form1.resx">
8774
<DependentUpon>Form1.cs</DependentUpon>
8875
</EmbeddedResource>
@@ -107,35 +94,9 @@
10794
<DependentUpon>Settings.settings</DependentUpon>
10895
<DesignTimeSharedInput>True</DesignTimeSharedInput>
10996
</Compile>
110-
<None Include="Service References\ServiceReference1\DwarfFortressModMerger.ServiceReference1.TitleInfoServiceModel.datasource">
111-
<DependentUpon>Reference.svcmap</DependentUpon>
112-
</None>
113-
<None Include="Service References\ServiceReference1\Services.wsdl" />
114-
<None Include="Service References\ServiceReference1\Services.xsd">
115-
<SubType>Designer</SubType>
116-
</None>
117-
<None Include="Service References\ServiceReference1\Services1.xsd">
118-
<SubType>Designer</SubType>
119-
</None>
120-
<None Include="Service References\ServiceReference1\Services2.xsd">
121-
<SubType>Designer</SubType>
122-
</None>
12397
</ItemGroup>
12498
<ItemGroup>
12599
<Content Include="j.ico" />
126-
<None Include="Service References\ServiceReference1\Reference.svcmap">
127-
<Generator>WCF Proxy Generator</Generator>
128-
<LastGenOutput>Reference.cs</LastGenOutput>
129-
</None>
130-
<None Include="Service References\ServiceReference1\configuration.svcinfo" />
131-
<None Include="Service References\ServiceReference1\configuration91.svcinfo" />
132-
<None Include="Service References\ServiceReference1\Services.disco" />
133-
</ItemGroup>
134-
<ItemGroup>
135-
<WCFMetadata Include="Service References\" />
136-
</ItemGroup>
137-
<ItemGroup>
138-
<WCFMetadataStorage Include="Service References\ServiceReference1\" />
139100
</ItemGroup>
140101
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
141102
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
File renamed without changes.
File renamed without changes.

SOURCE/DwarfFortressModMerger.sln renamed to DwarfFortressModMerger.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 14
44
VisualStudioVersion = 14.0.24720.0
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DwarfFortressModMerger", "DwarfFortressModMerger\DwarfFortressModMerger.csproj", "{CE1E85E5-85BC-4358-8053-EB7EDD280303}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DwarfFortressModMerger", "DwarfFortressModMerger.csproj", "{CE1E85E5-85BC-4358-8053-EB7EDD280303}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
File renamed without changes.
File renamed without changes.

SOURCE/DwarfFortressModMerger/Form1.cs renamed to Form1.cs

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.ComponentModel;
44
using System.Data;
@@ -14,16 +14,12 @@
1414
using ANDREICSLIB.Helpers;
1515
using ANDREICSLIB.Licensing;
1616
using DwarfFortressModMerger.Properties;
17-
using DwarfFortressModMerger.ServiceReference1;
1817

1918
namespace DwarfFortressModMerger
2019
{
2120
public partial class Form1 : Form
2221
{
2322
#region licensing
24-
25-
private const string AppTitle = "Dwarf Fortress Mod Merger";
26-
private const double AppVersion = 0.4;
2723
private const String HelpString = "";
2824

2925
private readonly String OtherText =
@@ -34,6 +30,7 @@ Licensed under GNU LGPL (http://www.gnu.org/)
3430
3531
Zip Assets © SharpZipLib (http://www.sharpdevelop.net/OpenSource/SharpZipLib/)
3632
";
33+
3734
#endregion
3835

3936
public Form1()
@@ -48,7 +45,7 @@ private void exitToolStripMenuItem_Click(object sender, EventArgs e)
4845

4946
private void Form1_Load(object sender, EventArgs e)
5047
{
51-
Licensing.CreateLicense(this, menuStrip1, new Licensing.SolutionDetails(GetDetails, HelpString, AppTitle, AppVersion, OtherText));
48+
Licensing.LicensingForm(this, menuStrip1, HelpString, OtherText);
5249

5350
LoadConfig();
5451
if (vanillaLB.Items.Count >= 1)
@@ -63,34 +60,7 @@ private void Form1_Load(object sender, EventArgs e)
6360
//init clientside
6461
Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("");
6562
}
66-
67-
public Licensing.DownloadedSolutionDetails GetDetails()
68-
{
69-
try
70-
{
71-
var sr = new ServicesClient();
72-
var ti = sr.GetTitleInfo(AppTitle);
73-
if (ti == null)
74-
return null;
75-
return ToDownloadedSolutionDetails(ti);
76-
77-
}
78-
catch (Exception)
79-
{
80-
}
81-
return null;
82-
}
83-
84-
public static Licensing.DownloadedSolutionDetails ToDownloadedSolutionDetails(TitleInfoServiceModel tism)
85-
{
86-
return new Licensing.DownloadedSolutionDetails()
87-
{
88-
ZipFileLocation = tism.LatestTitleDownloadPath,
89-
ChangeLog = tism.LatestTitleChangelog,
90-
Version = tism.LatestTitleVersion
91-
};
92-
}
93-
63+
9464
private const string cfgpath = "DFMM.cfg";
9565
private void SaveConfig()
9666
{
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)