From 53cae6be86bc3557260d95684f37a4bccb95cbaa Mon Sep 17 00:00:00 2001 From: zeromus Date: Wed, 6 Apr 2011 04:54:42 +0000 Subject: [PATCH] dont crash when loading program with no argv rom. its not very impressive. --- BizHawk.MultiClient/MainForm.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BizHawk.MultiClient/MainForm.cs b/BizHawk.MultiClient/MainForm.cs index 2173100de4..13e82e6b67 100644 --- a/BizHawk.MultiClient/MainForm.cs +++ b/BizHawk.MultiClient/MainForm.cs @@ -763,7 +763,8 @@ namespace BizHawk.MultiClient { runloop_second = DateTime.Now; Global.RenderPanel.FPS = runloop_fps; - Text = Text.Substring(0, Text.IndexOf('\\')) + "\\ " + runloop_fps + " fps"; + if(Text.IndexOf('\\') != -1) + Text = Text.Substring(0, Text.IndexOf('\\')) + "\\ " + runloop_fps + " fps"; Global.RenderPanel.FPS = runloop_fps; runloop_fps = 0; }