Added support for placing a noload.txt file in the root of a system/ROM directory to keep it from getting loaded.

This commit is contained in:
Leon Styhre 2022-06-05 11:52:33 +02:00
parent aded840483
commit eb3fb3d953

View file

@ -272,6 +272,12 @@ bool SystemData::populateFolder(FileData* folder)
if (dirContent.size() == 0)
return false;
if (std::find(dirContent.cbegin(), dirContent.cend(), mEnvData->mStartPath + "/noload.txt") !=
dirContent.cend()) {
LOG(LogInfo) << "Not populating system \"" << mName << "\" as a noload.txt file is present";
return false;
}
if (std::find(dirContent.cbegin(), dirContent.cend(), mEnvData->mStartPath + "/flatten.txt") !=
dirContent.cend()) {
LOG(LogInfo) << "A flatten.txt file is present for the \"" << mName