mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatTools] Skip files with no name
This commit is contained in:
@@ -1396,6 +1396,13 @@ namespace SabreTools.Helper
|
||||
{
|
||||
key = "";
|
||||
|
||||
// If there's no name in the rom, we log and skip it
|
||||
if (String.IsNullOrEmpty(rom.Name))
|
||||
{
|
||||
logger.Warning("Rom with no name found! Skipping...");
|
||||
return datdata;
|
||||
}
|
||||
|
||||
// If we're in cleaning mode, sanitize the game name
|
||||
rom.Machine.Name = (clean ? Style.CleanGameName(rom.Machine.Name) : rom.Machine.Name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user