dont crash when loading program with no argv rom. its not very impressive.

This commit is contained in:
zeromus 2011-04-06 04:54:42 +00:00
parent 9fd79ee576
commit 53cae6be86
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}