# HG changeset patch # User Sam # Date 1707927353 -25200 # Node ID f14b955da09b4bcc90ef63ea7ec31e23a7e895e5 # Parent ad961543994b0763894d61acdc0c707a8bf08881 fix: yielding duplicates diff -r ad961543994b -r f14b955da09b semicongine/resources.nim --- a/semicongine/resources.nim Wed Feb 14 21:58:43 2024 +0700 +++ b/semicongine/resources.nim Wed Feb 14 23:15:53 2024 +0700 @@ -112,6 +112,7 @@ else: if not (components[0] in yielded): yield (kind: pcDir, path: components[0]) + yielded.incl components[0] archive.close() elif thebundletype == Exe: @@ -157,6 +158,7 @@ else: if not (components[0] in yielded): yield (kind: pcDir, path: components[0]) + yielded.incl components[0] proc loadResource*(path: string, package = DEFAULT_PACKAGE): Stream = loadResource_intern(path, package = package) diff -r ad961543994b -r f14b955da09b tests/resources/mod1/aSubdir/moreSubdir/superSubdir/empty.stuff