Mercurial > games > semicongine
changeset 359:5dcd551130be
add: option to walk resources in a specific directory
author | Sam <sam@basx.dev> |
---|---|
date | Sun, 24 Sep 2023 00:21:42 +0700 |
parents | 407bb5a965a9 |
children | 6794c07934f9 |
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