Fix overlays::image_info constructor

This commit is contained in:
Nekotekina 2022-01-26 14:24:06 +03:00
commit 3a1082fe0d

View file

@ -29,7 +29,7 @@ namespace rsx
{ {
fs::file f(filename); fs::file f(filename);
if (!f) if (!f || f.stat().is_directory)
{ {
rsx_log.error("Image resource file `%s' could not be opened (%s)", filename, fs::g_tls_error); rsx_log.error("Image resource file `%s' could not be opened (%s)", filename, fs::g_tls_error);
return; return;