Skip to content

Commit

Permalink
Yet another csproj fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pema99 committed May 4, 2019
1 parent e64a77f commit d36313a
Show file tree
Hide file tree
Showing 10 changed files with 1,745 additions and 10 deletions.
19 changes: 9 additions & 10 deletions LotusNES.Frontend/LotusNES.Frontend.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,22 @@
<Compile Include="Source\Misc\FastBitmap.cs" />
<Compile Include="Source\Misc\PaletteMap.cs" />
<Compile Include="Source\Program.cs" />
<Compile Include="Source\UI\Debug\GameGenieForm.cs">
<Compile Include="Source\UI\Debug tools\GameGenieForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Source\UI\Debug\GameGenieForm.Designer.cs">
<Compile Include="Source\UI\Debug tools\GameGenieForm.Designer.cs">
<DependentUpon>GameGenieForm.cs</DependentUpon>
</Compile>
<Compile Include="Source\UI\Debug\NameTableForm.cs">
<Compile Include="Source\UI\Debug tools\NameTableForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Source\UI\Debug\NameTableForm.Designer.cs">
<Compile Include="Source\UI\Debug tools\NameTableForm.Designer.cs">
<DependentUpon>NameTableForm.cs</DependentUpon>
</Compile>
<Compile Include="Source\UI\Debug\PPUViewForm.cs">
<Compile Include="Source\UI\Debug tools\PPUViewForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Source\UI\Debug\PPUViewForm.Designer.cs">
<Compile Include="Source\UI\Debug tools\PPUViewForm.Designer.cs">
<DependentUpon>PPUViewForm.cs</DependentUpon>
</Compile>
<Compile Include="Source\UI\DoubleBufferedForm.cs">
Expand Down Expand Up @@ -100,13 +100,13 @@
<ItemGroup>
<EmbeddedResource Include="Icon.ico" />
<EmbeddedResource Include="Icon.bmp" />
<EmbeddedResource Include="Source\UI\Debug\GameGenieForm.resx">
<EmbeddedResource Include="Source\UI\Debug tools\GameGenieForm.resx">
<DependentUpon>GameGenieForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Source\UI\Debug\NameTableForm.resx">
<EmbeddedResource Include="Source\UI\Debug tools\NameTableForm.resx">
<DependentUpon>NameTableForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Source\UI\Debug\PPUViewForm.resx">
<EmbeddedResource Include="Source\UI\Debug tools\PPUViewForm.resx">
<DependentUpon>PPUViewForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Source\UI\Input\InputForm.resx">
Expand Down Expand Up @@ -174,7 +174,6 @@
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
132 changes: 132 additions & 0 deletions LotusNES.Frontend/Source/UI/Debug tools/GameGenieForm.Designer.cs

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

47 changes: 47 additions & 0 deletions LotusNES.Frontend/Source/UI/Debug tools/GameGenieForm.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
using System.Windows.Forms;
using LotusNES.Core;

namespace LotusNES.Frontend
{
public partial class GameGenieForm : DoubleBufferedForm
{
public GameGenieForm()
{
InitializeComponent();
}

private void GameGenieForm_FormClosing(object sender, FormClosingEventArgs e)
{
e.Cancel = true;
Hide();
}

private void CheckToggle_CheckedChanged(object sender, System.EventArgs e)
{
foreach (Control control in Controls)
{
if (control != CheckToggle)
{
control.Enabled = CheckToggle.Checked;
}
}
Emulator.GameGenie.Enabled = CheckToggle.Checked;
}

private void ButtonAdd_Click(object sender, System.EventArgs e)
{
if (Emulator.GameGenie.AddCode(InputCode.Text))
{
ListCodes.Items.Add(InputCode.Text);
}
}

private void ButtonRemove_Click(object sender, System.EventArgs e)
{
if (Emulator.GameGenie.RemoveCode((string)ListCodes.SelectedItem))
{
ListCodes.Items.Remove((string)ListCodes.SelectedItem);
}
}
}
}
Loading

0 comments on commit d36313a

Please sign in to comment.