Skip to content

Commit

Permalink
Add DotNet action, settings changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CatmanFan committed Dec 28, 2024
1 parent 00180ad commit 6d1c1f3
Show file tree
Hide file tree
Showing 18 changed files with 222 additions and 177 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
32 changes: 0 additions & 32 deletions .github/workflows/download.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/upload.yml

This file was deleted.

20 changes: 16 additions & 4 deletions FriishProduce/FriishProduce.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateEnabled>true</UpdateEnabled>
<UpdateMode>Background</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<MinimumRequiredVersion>1.1.0.0</MinimumRequiredVersion>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.1.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
Expand Down Expand Up @@ -411,6 +412,7 @@
<DependentUpon>SettingsForm.cs</DependentUpon>
</Compile>
<Compile Include="_classes\Helpers\SoundHelper.cs" />
<Compile Include="_classes\Program\Settings.cs" />
<Compile Include="_classes\Utilities.cs" />
<Compile Include="_classes\Platform.cs" />
<Compile Include="_classes\Creators\WiiVC\_base.cs" />
Expand Down Expand Up @@ -714,6 +716,16 @@
<None Include="Resources\icons\consoles\nintendo super nes.ico" />
</ItemGroup>
<ItemGroup>
<PublishFile Include="icon.ico">
<Visible>False</Visible>
<Group>
</Group>
<TargetPath>
</TargetPath>
<PublishState>Exclude</PublishState>
<IncludeHash>True</IncludeHash>
<FileType>File</FileType>
</PublishFile>
<PublishFile Include="VistaMenu">
<Visible>False</Visible>
<Group>
Expand All @@ -726,9 +738,9 @@
</PublishFile>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.7.2">
<BootstrapperPackage Include=".NETFramework,Version=v4.8">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.7.2 %28x86 and x64%29</ProductName>
<ProductName>Microsoft .NET Framework 4.8 %28x86 and x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
Expand Down
12 changes: 0 additions & 12 deletions FriishProduce/Options/VC_NEO.Designer.cs

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

3 changes: 0 additions & 3 deletions FriishProduce/Options/VC_NEO.settings
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@
<Setting Name="bios" Type="System.String" Scope="User">
<Value Profile="(Default)">VC2</Value>
</Setting>
<Setting Name="bios_path" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
</Settings>
</SettingsFile>
15 changes: 13 additions & 2 deletions FriishProduce/SettingsForm.Designer.cs

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

10 changes: 10 additions & 0 deletions FriishProduce/SettingsForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,16 @@ private void Cancel_Click(object sender, EventArgs e)
DialogResult = DialogResult.Cancel;
}

private void Reset_Click(object sender, EventArgs e)
{
if (MessageBox.Show(Program.Lang.Msg(11), MessageBox.Buttons.YesNo, MessageBox.Icons.Warning) == MessageBox.Result.Yes)
{
Default.Reset();
System.Diagnostics.Process.Start(Application.ExecutablePath);
System.Diagnostics.Process.GetCurrentProcess().Kill();
}
}

private void DownloadBanners_Click(object sender, EventArgs e)
{
System.Media.SystemSounds.Beep.Play();
Expand Down
Loading

0 comments on commit 6d1c1f3

Please sign in to comment.