Mercurial > games > semicongine
changeset 820:85470ae0f728
add: option to walk resources in a specific directory
author | Sam <sam@basx.dev> |
---|---|
date | Sun, 24 Sep 2023 00:21:42 +0700 |
parents | 4c8bab2d1cc5 |
children | 6d258ab35f70 |
files | src/semicongine/resources.nim |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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