# HG changeset patch # User Sam # Date 1695489702 -25200 # Node ID 5dcd551130be76079e8c412c7ad1dc73d4bc7d91 # Parent 407bb5a965a9e3e065a27afabdab98394497816d add: option to walk resources in a specific directory diff -r 407bb5a965a9 -r 5dcd551130be src/semicongine/resources.nim --- a/src/semicongine/resources.nim Sat Sep 23 23:05:22 2023 +0700 +++ b/src/semicongine/resources.nim Sun Sep 24 00:21:42 2023 +0700 @@ -139,6 +139,7 @@ proc modList*(): seq[string] = modList_intern() -iterator walkResources*(): string = +iterator walkResources*(dir=""): string = for i in walkResources_intern(): - yield i + if i.startsWith(dir): + yield i