mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-30 20:15:38 +00:00
Game files with only an extension and no filename will now get skipped on application startup
This commit is contained in:
parent
cfa53c5097
commit
eb75f79b70
|
@ -349,6 +349,12 @@ bool SystemData::populateFolder(FileData* folder)
|
|||
!(isDirectory && extension == ".")) {
|
||||
FileData* newGame {new FileData(GAME, filePath, mEnvData, this)};
|
||||
|
||||
if (newGame->metadata.get("name") == "") {
|
||||
LOG(LogWarning) << "Skipped \"" << filePath << "\" as it has no filename";
|
||||
delete newGame;
|
||||
continue;
|
||||
}
|
||||
|
||||
// If adding a configured file extension to a directory it will get interpreted as
|
||||
// a regular file. This is useful for displaying multi-file/multi-disc games as single
|
||||
// entries or for emulators that can get directories passed to them as command line
|
||||
|
|
Loading…
Reference in a new issue