mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 22:25:38 +00:00
Added check to make sure file names aren't empty.
This commit is contained in:
parent
b6f9dc318e
commit
2bd9c51447
|
@ -96,6 +96,9 @@ void SystemData::populateFolder(FolderData* folder)
|
||||||
{
|
{
|
||||||
fs::path filePath = (*dir).path();
|
fs::path filePath = (*dir).path();
|
||||||
|
|
||||||
|
if(filePath.stem().string().empty())
|
||||||
|
continue;
|
||||||
|
|
||||||
if(fs::is_directory(filePath))
|
if(fs::is_directory(filePath))
|
||||||
{
|
{
|
||||||
FolderData* newFolder = new FolderData(this, filePath.string(), filePath.stem().string());
|
FolderData* newFolder = new FolderData(this, filePath.string(), filePath.stem().string());
|
||||||
|
|
Loading…
Reference in a new issue