PLUGINS: Make detection plugin filename check case insensitive

Plugin filenames are all upper case on Dreamcast due to the ISO 9660
filesystem.  It doesn't seem likely that making the check case
insensitive would cause any problems even on a file system that
is case sensitive.
This commit is contained in:
Marcus Comstedt 2021-09-20 23:02:57 +02:00
parent 4845b6daa2
commit d2fba8fc2f

View File

@ -369,7 +369,7 @@ void PluginManagerUncached::init() {
#ifndef DETECTION_STATIC
if (!foundDetectPlugin && (*pp)->isFilePluginProvider()) {
Common::String pName = (*p)->getFileName();
if (pName.hasSuffix(detectPluginName)) {
if (pName.hasSuffixIgnoreCase(detectPluginName)) {
_detectionPlugin = (*p);
foundDetectPlugin = true;
debug(9, "Detection plugin found!");