/[EmuXPortal]/branches/mono/EmuXPortal/Form1.cs
ViewVC logotype

Diff of /branches/mono/EmuXPortal/Form1.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- branches/mono/EmuXPortal/Form1.cs	2019/05/02 03:09:26	377
+++ branches/mono/EmuXPortal/Form1.cs	2019/05/02 04:43:31	383
@@ -288,28 +288,6 @@
 				Application.DoEvents ();
 			}
 		}
-		void ReleasePlatformControlStreams ()
-		{
-			foreach (var c in platform_flow.Controls) {
-				if (c.GetType () == typeof (PlatformControl)) {
-					PlatformControl pc = (c as PlatformControl);
-					if (pc != null) {
-						pc.ReleasePlatformStream ();
-					}
-				}
-			}
-		}
-		void ReleaseGameControlStreams ()
-		{
-			foreach (var c in rom_flow.Controls) {
-				if (c.GetType () == typeof (GameControl)) {
-					GameControl gc = (c as GameControl);
-					if (gc != null) {
-						gc.ReleaseGameStream ();
-					}
-				}
-			}
-		}
 		void platform_ctrl_LostFocus (object sender, EventArgs e)
 		{
 			PlatformControl c = sender as PlatformControl;
@@ -577,8 +555,7 @@
 			}
 			if (e.KeyCode == Keys.Back || e.KeyCode == Keys.Escape) {
 
-				bAbortRomCopyToLocalCache = true; // this will cancel any copy operations
-				ReleaseGameControlStreams ();
+				bAbortRomCopyToLocalCache = true; // this will cancel any copy operations
 				SavedPlatformIndex = platform_flow.Controls.IndexOf (CurrentPlatformControl);
 				rom_flow.Visible = false;
 				platform_flow.Visible = true;
@@ -686,8 +663,7 @@
 				platform_flow.ScrollControlIntoView (s);
 				platform_flow.ResumeLayout (false);
 			}
-			if (e.KeyCode == Keys.Enter) {
-				ReleasePlatformControlStreams ();
+			if (e.KeyCode == Keys.Enter) {
 				// load this platform				
 				platform_flow.Visible = false;
 				CurrentSelectedRom = c.Tag as IEmuConfig;
@@ -695,8 +671,7 @@
 				rom_flow.BringToFront ();
 			}
 			if (e.KeyCode == Keys.Back || e.KeyCode == Keys.Escape) {
-				bAbortRomCopyToLocalCache = true;
-				ReleasePlatformControlStreams ();
+				bAbortRomCopyToLocalCache = true;
 				this.Close ();
 			}
 			if ((e.KeyCode >= Keys.A && e.KeyCode <= Keys.Z) ||

 

  ViewVC Help
Powered by ViewVC 1.1.22