From b96ebaafeb6fc28ff0f438339cc82ee378272db9 Mon Sep 17 00:00:00 2001 From: zeromus Date: Fri, 13 Jun 2014 01:27:26 +0000 Subject: [PATCH] dont get stuck if the user specifies a crashing retroshader --- BizHawk.Client.EmuHawk/DisplayManager/Filters/Retro.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BizHawk.Client.EmuHawk/DisplayManager/Filters/Retro.cs b/BizHawk.Client.EmuHawk/DisplayManager/Filters/Retro.cs index bd929f01af..cfefbb6f51 100644 --- a/BizHawk.Client.EmuHawk/DisplayManager/Filters/Retro.cs +++ b/BizHawk.Client.EmuHawk/DisplayManager/Filters/Retro.cs @@ -40,6 +40,11 @@ namespace BizHawk.Client.EmuHawk.Filters //acquire content string path = Path.Combine(baseDirectory, pass.ShaderPath); + if (!File.Exists(path)) + { + ok = false; + break; + } string content = File.ReadAllText(path); var shader = new RetroShader(Owner, content, debug);