35
35
using BizHawk . Emulation . Cores . Nintendo . NES ;
36
36
using BizHawk . Emulation . Cores . Nintendo . SNES ;
37
37
38
+ using BizHawk . Emulation . DiscSystem ;
39
+
38
40
using BizHawk . Client . EmuHawk . ToolExtensions ;
39
41
using BizHawk . Client . EmuHawk . CoreExtensions ;
40
42
using BizHawk . Client . EmuHawk . CustomControls ;
41
43
using BizHawk . Common . CollectionExtensions ;
42
44
using BizHawk . WinForms . Controls ;
43
- using BizHawk . Emulation . Cores . Computers . SinclairSpectrum ;
44
45
45
46
namespace BizHawk . Client . EmuHawk
46
47
{
@@ -69,17 +70,6 @@ private void MainForm_Load(object sender, EventArgs e)
69
70
{
70
71
UpdateWindowTitle ( ) ;
71
72
72
- Slot1StatusButton . Tag = SelectSlot1MenuItem . Tag = 1 ;
73
- Slot2StatusButton . Tag = SelectSlot2MenuItem . Tag = 2 ;
74
- Slot3StatusButton . Tag = SelectSlot3MenuItem . Tag = 3 ;
75
- Slot4StatusButton . Tag = SelectSlot4MenuItem . Tag = 4 ;
76
- Slot5StatusButton . Tag = SelectSlot5MenuItem . Tag = 5 ;
77
- Slot6StatusButton . Tag = SelectSlot6MenuItem . Tag = 6 ;
78
- Slot7StatusButton . Tag = SelectSlot7MenuItem . Tag = 7 ;
79
- Slot8StatusButton . Tag = SelectSlot8MenuItem . Tag = 8 ;
80
- Slot9StatusButton . Tag = SelectSlot9MenuItem . Tag = 9 ;
81
- Slot0StatusButton . Tag = SelectSlot0MenuItem . Tag = 10 ;
82
-
83
73
{
84
74
for ( int i = 1 ; i <= WINDOW_SCALE_MAX ; i ++ )
85
75
{
@@ -2881,12 +2871,6 @@ private void ToggleCaptureMouse()
2881
2871
AddOnScreenMessage ( $ "Capture Mouse { ( Config . CaptureMouse ? "enabled" : "disabled" ) } ") ;
2882
2872
}
2883
2873
2884
- private void ToggleStayOnTop ( )
2885
- {
2886
- TopMost = Config . MainFormStayOnTop = ! Config . MainFormStayOnTop ;
2887
- AddOnScreenMessage ( $ "Stay on Top { ( Config . MainFormStayOnTop ? "enabled" : "disabled" ) } ") ;
2888
- }
2889
-
2890
2874
private void VsyncMessage ( )
2891
2875
{
2892
2876
AddOnScreenMessage ( $ "Display Vsync set to { ( Config . VSync ? "on" : "off" ) } ") ;
@@ -4798,11 +4782,7 @@ private void StartSingleInstanceServer()
4798
4782
}
4799
4783
4800
4784
// Create pipe and start the async connection wait
4801
- #if NET5_0_OR_GREATER
4802
- _singleInstanceServer = NamedPipeServerStreamAcl . Create (
4803
- #else
4804
4785
_singleInstanceServer = new NamedPipeServerStream (
4805
- #endif
4806
4786
"pipe-{84125ACB-F570-4458-9748-321F887FE795}" ,
4807
4787
PipeDirection . In ,
4808
4788
1 ,
@@ -4906,33 +4886,6 @@ private void OpenRetroAchievements()
4906
4886
private bool _hasXFixes ;
4907
4887
private readonly IntPtr [ ] _pointerBarriers = new IntPtr [ 4 ] ;
4908
4888
4909
- private void dOSToolStripMenuItem_Click ( object sender , EventArgs e )
4910
- {
4911
-
4912
- }
4913
-
4914
- private void exportHDDImageToolStripMenuItem_Click ( object sender , EventArgs e )
4915
- {
4916
- try
4917
- {
4918
- var result = this . ShowFileSaveDialog (
4919
- discardCWDChange : true ,
4920
- fileExt : "bin" ,
4921
- filter : DOSBoxHDDImageFilterSet ,
4922
- initDir : Config . PathEntries . ToolsAbsolutePath ( ) ) ;
4923
- if ( result is not null )
4924
- {
4925
- var speccy = ( DOSBox ) Emulator ;
4926
- var snap = speccy . getHDDContents ( ) ;
4927
- File . WriteAllBytes ( result , snap ) ;
4928
- }
4929
- }
4930
- catch ( Exception )
4931
- {
4932
- // ignored
4933
- }
4934
- }
4935
-
4936
4889
#if false
4937
4890
private delegate void CaptureWithConfineDelegate ( Control control , Control confineWindow ) ;
4938
4891
@@ -4954,23 +4907,13 @@ private void CaptureMouse(bool wantCapture)
4954
4907
_presentationPanel . Control . Cursor = Properties . Resources . BlankCursor ;
4955
4908
_cursorHidden = true ;
4956
4909
BringToFront ( ) ;
4957
-
4958
- if ( Config . MainFormMouseCaptureForcesTopmost )
4959
- {
4960
- TopMost = true ;
4961
- }
4962
4910
}
4963
4911
else
4964
4912
{
4965
4913
Cursor . Clip = Rectangle . Empty ;
4966
4914
Cursor . Show ( ) ;
4967
4915
_presentationPanel . Control . Cursor = Cursors . Default ;
4968
4916
_cursorHidden = false ;
4969
-
4970
- if ( Config . MainFormMouseCaptureForcesTopmost )
4971
- {
4972
- TopMost = Config . MainFormStayOnTop ;
4973
- }
4974
4917
}
4975
4918
4976
4919
// Cursor.Clip is a no-op on Linux, so we need this too
0 commit comments