Skip to content

Commit

Permalink
FunkeySelectorGUI 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GittyMac committed Nov 8, 2020
1 parent d31eb2b commit 8c56f19
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 13 deletions.
4 changes: 2 additions & 2 deletions FunkeySelector.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.421
# Visual Studio Version 16
VisualStudioVersion = 16.0.30413.136
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FunkeySelector", "FunkeySelector\FunkeySelector.csproj", "{387CDF2B-2CC3-491D-B1C2-CE436B23BF86}"
EndProject
Expand Down
3 changes: 3 additions & 0 deletions FunkeySelector/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<setting name="disableWineCheck" serializeAs="String">
<value>False</value>
</setting>
<setting name="updates" serializeAs="String">
<value>True</value>
</setting>
</FunkeySelector.Properties.Settings>
</userSettings>
</configuration>
11 changes: 9 additions & 2 deletions FunkeySelector/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ public Form1() //When the form is opened.
{
if (!File.Exists("UBFunkeys.exe")) //Checks if it's in the RadicaGame folder.
{
MessageBox.Show("The U.B. Funkeys game was not found! Did you put FunkeySelectorGUI in the RadicaGame folder?");
if (!File.Exists("OpenFK.exe")) //Ensures that OpenFK users won't get warned.
{
MessageBox.Show("The U.B. Funkeys game was not found! Did you put FunkeySelectorGUI in the RadicaGame folder?");
}
}
}
if (Properties.Settings.Default.disableModCheck == false) // Checks if mod check is allowed.
Expand All @@ -42,7 +45,11 @@ public Form1() //When the form is opened.
{
if (CalculateMD5("Main.swf") != "93261ce3dc332fdee5d4335eab0a8e63") //Compares the MD5 hash of the local main.swf with the mod's main.swf.
{
MessageBox.Show("Could not detect the Funkeys Selection Mod! Did you install the mod?");
if (File.Exists("OpenFK.exe")) //Ensures that OpenFK users won't get warned.
{
Debug.WriteLine("OpenFK detected! Skipping mod check.");
}
else MessageBox.Show("Could not detect the Funkeys Selection Mod! Did you install the mod?");
}
}
}
Expand Down
10 changes: 5 additions & 5 deletions FunkeySelector/Form14.Designer.cs

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

2 changes: 0 additions & 2 deletions FunkeySelector/Form14.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ private void checkBox1_CheckedChanged(object sender, EventArgs e)
else
Properties.Settings.Default.disableModCheck = false;
Properties.Settings.Default.Save();


}

private void checkBox2_CheckedChanged(object sender, EventArgs e)
Expand Down
6 changes: 5 additions & 1 deletion FunkeySelector/FunkeySelector.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<Deterministic>true</Deterministic>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand All @@ -28,7 +30,7 @@
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
Expand All @@ -42,6 +44,8 @@
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Xaml" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
Expand Down
1 change: 1 addition & 0 deletions FunkeySelector/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using System.Windows.Forms;
Expand Down
14 changes: 13 additions & 1 deletion FunkeySelector/Properties/Settings.Designer.cs

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

3 changes: 3 additions & 0 deletions FunkeySelector/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@
<Setting Name="disableWineCheck" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="updates" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
</Settings>
</SettingsFile>

0 comments on commit 8c56f19

Please sign in to comment.