diff --git a/src/libretro/environment.cpp b/src/libretro/environment.cpp index dcf44f5..f6da7d3 100644 --- a/src/libretro/environment.cpp +++ b/src/libretro/environment.cpp @@ -482,7 +482,7 @@ const optional& retro::get_system_directory() { optional retro::get_system_path(const string_view& name) noexcept { optional sysdir = retro::get_system_directory(); - if (!sysdir || name.empty() || name.find('\0')) { + if (!sysdir) { // If no system directory is available, or the name is empty or not null-terminated... return nullopt; }