Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CatmanFan committed Mar 11, 2024
1 parent 99343ac commit 10ce197
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 5 deletions.
1 change: 1 addition & 0 deletions FriishProduce/FriishProduce.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@
<ItemGroup>
<Content Include="Database.xml" />
<Content Include="icon.ico" />
<None Include="Resources\icons\msx.png" />
<None Include="Resources\icons\globe-model.png" />
<EmbeddedResource Include="Strings\en.xml" />
<None Include="Resources\icons\mr-saturn.png" />
Expand Down
11 changes: 7 additions & 4 deletions FriishProduce/InjectorForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public void RefreshForm()
}

InjectorsList.SelectedIndex = 0;
InjectorsList.Enabled = InjectorsList.Items.Count > 1;
label3.Enabled = InjectorsList.Enabled = InjectorsList.Items.Count > 1;

if (Properties.Settings.Default.ImageFitAspectRatio) radioButton2.Checked = true; else radioButton1.Checked = true;
}
Expand Down Expand Up @@ -575,7 +575,7 @@ public void LoadROM(string ROMpath, bool UseLibRetro = true)
break;
}

ROM.Path = ROMpath;
if (ROM != null) ROM.Path = ROMpath;
ROMLoaded = true;

PatchFile = null;
Expand Down Expand Up @@ -874,6 +874,8 @@ private void AddBases()
}

if (Base.Items.Count > 0) { Base.SelectedIndex = 0; }

Base.Enabled = Base.Items.Count > 1;
}


Expand Down Expand Up @@ -1294,8 +1296,9 @@ private void InjectorsList_SelectedIndexChanged(object sender, EventArgs e)
else
COPanel_Forwarder.Show();

var selected = COPanel_Forwarder.Visible ? COPanel_Forwarder : COPanel_VC;
groupBox4.Size = new Size(groupBox4.Width, selected.Location.Y + selected.Height + 7);
var selected = COPanel_Forwarder.Visible ? COPanel_Forwarder : COPanel_VC.Visible ? COPanel_VC : null;
int height = selected == null ? InjectorsList.Location.Y + InjectorsList.Height + 10 : selected.Location.Y + selected.Height + 10;
groupBox4.Size = new Size(groupBox4.Width, height);
if (groupBox4.Enabled) CheckExport();
}
}
Expand Down
8 changes: 7 additions & 1 deletion FriishProduce/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ private void AutoSetStrip()
// new ToolStripSeparator(),
new ToolStripMenuItem(null, new Icon(Properties.Resources.snk_neo_geo_aes, 16, 16).ToBitmap(), AddProject, Console.NeoGeo.ToString()),
new ToolStripSeparator(),
new ToolStripMenuItem(null, new Icon(SystemIcons.Shield, 16, 16).ToBitmap(), AddProject, Console.MSX.ToString())
new ToolStripMenuItem(null, Properties.Resources.msx, AddProject, Console.MSX.ToString()),
// new ToolStripSeparator(),
// new ToolStripMenuItem(null, Properties.Resources.flash, AddProject, Console.Flash.ToString())
//})
};

Expand Down Expand Up @@ -275,6 +277,10 @@ private void BrowseROMDialog(Console c, InjectorForm currentForm)
case Console.NeoGeo:
BrowseROM.Filter = Language.Get("Filter.ZIP");
break;

case Console.Flash:
BrowseROM.Filter = Language.Get("Filter.SWF");
break;
}

if (BrowseROM.ShowDialog() == DialogResult.OK)
Expand Down
10 changes: 10 additions & 0 deletions FriishProduce/Properties/Resources.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 FriishProduce/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -298,4 +298,7 @@
<data name="ForwarderV14" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\forwarder\forwarder_v14.dol;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="msx" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\icons\msx.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
Binary file added FriishProduce/Resources/icons/msx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 10ce197

Please sign in to comment.