mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Always keep track of the last parent, always
This commit is contained in:
@@ -254,7 +254,7 @@ namespace SabreTools
|
|||||||
// This is where the main loop would go
|
// This is where the main loop would go
|
||||||
if (File.Exists(_basePath))
|
if (File.Exists(_basePath))
|
||||||
{
|
{
|
||||||
lastparent = ProcessFile(_basePath, sw);
|
lastparent = ProcessFile(_basePath, sw, lastparent);
|
||||||
}
|
}
|
||||||
else if (Directory.Exists(_basePath))
|
else if (Directory.Exists(_basePath))
|
||||||
{
|
{
|
||||||
@@ -280,7 +280,7 @@ namespace SabreTools
|
|||||||
foreach (string subitem in Directory.EnumerateFiles(item, "*", SearchOption.AllDirectories))
|
foreach (string subitem in Directory.EnumerateFiles(item, "*", SearchOption.AllDirectories))
|
||||||
{
|
{
|
||||||
items = true;
|
items = true;
|
||||||
lastparent = ProcessFile(subitem, sw, item);
|
lastparent = ProcessFile(subitem, sw, lastparent);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there were no subitems, add a "blank" game to to the set
|
// If there were no subitems, add a "blank" game to to the set
|
||||||
|
|||||||
Reference in New Issue
Block a user