mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DATFromDir] Romba ignores empty folders
This commit is contained in:
@@ -379,7 +379,9 @@ namespace SabreTools
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now output any empties to the stream
|
// Now output any empties to the stream (if not in Romba mode)
|
||||||
|
if (!_datdata.Romba)
|
||||||
|
{
|
||||||
foreach (List<RomData> roms in _datdata.Roms.Values)
|
foreach (List<RomData> roms in _datdata.Roms.Values)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < roms.Count; i++)
|
for (int i = 0; i < roms.Count; i++)
|
||||||
@@ -421,10 +423,11 @@ namespace SabreTools
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If we had roms but not blanks (and not in Romba mode), create an artifical rom for the purposes of outputting
|
// If we had roms but not blanks (and not in Romba mode), create an artifical rom for the purposes of outputting
|
||||||
if (lastparent != null && _datdata.Roms.Count == 0 && !_datdata.Romba)
|
if (lastparent != null && _datdata.Roms.Count == 0)
|
||||||
{
|
{
|
||||||
_datdata.Roms.Add("temp", new List<RomData>());
|
_datdata.Roms.Add("temp", new List<RomData>());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Now write the final piece and close the output stream
|
// Now write the final piece and close the output stream
|
||||||
Output.WriteFooter(sw, _datdata, 0, _logger);
|
Output.WriteFooter(sw, _datdata, 0, _logger);
|
||||||
|
|||||||
Reference in New Issue
Block a user