dont get stuck if the user specifies a crashing retroshader
This commit is contained in:
parent
398577245e
commit
b96ebaafeb
|
@ -40,6 +40,11 @@ namespace BizHawk.Client.EmuHawk.Filters
|
||||||
|
|
||||||
//acquire content
|
//acquire content
|
||||||
string path = Path.Combine(baseDirectory, pass.ShaderPath);
|
string path = Path.Combine(baseDirectory, pass.ShaderPath);
|
||||||
|
if (!File.Exists(path))
|
||||||
|
{
|
||||||
|
ok = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
string content = File.ReadAllText(path);
|
string content = File.ReadAllText(path);
|
||||||
|
|
||||||
var shader = new RetroShader(Owner, content, debug);
|
var shader = new RetroShader(Owner, content, debug);
|
||||||
|
|
Loading…
Reference in New Issue