mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 08:05:38 +00:00
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:
parent
aded840483
commit
eb3fb3d953
|
@ -272,6 +272,12 @@ bool SystemData::populateFolder(FileData* folder)
|
||||||
if (dirContent.size() == 0)
|
if (dirContent.size() == 0)
|
||||||
return false;
|
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") !=
|
if (std::find(dirContent.cbegin(), dirContent.cend(), mEnvData->mStartPath + "/flatten.txt") !=
|
||||||
dirContent.cend()) {
|
dirContent.cend()) {
|
||||||
LOG(LogInfo) << "A flatten.txt file is present for the \"" << mName
|
LOG(LogInfo) << "A flatten.txt file is present for the \"" << mName
|
||||||
|
|
Loading…
Reference in a new issue