Mercurial > games > semicongine
comparison tests/test_resources.nim @ 235:5f6d3511ef79
did: replace zippy with "standard" nim zip, compiled from source, fix some errors
author | Sam <sam@basx.dev> |
---|---|
date | Sat, 20 May 2023 17:44:55 +0700 |
parents | b5d9410a8184 |
children | 1ab09f8cc68d |
comparison
equal
deleted
inserted
replaced
234:3918e42bf26e | 235:5f6d3511ef79 |
---|---|
1 import std/times | 1 import std/streams |
2 | 2 |
3 import semicongine | 3 import semicongine |
4 | 4 |
5 proc main() = | 5 proc main() = |
6 echo "Mods available: ", modList() | 6 echo "Mods available: ", modList() |
7 for modName in modList(): | 7 for modName in modList(): |
8 echo modName, ":" | 8 echo modName, ":" |
9 selectedMod = modName | 9 selectedMod = modName |
10 for i in walkResources(): | 10 for i in walkResources(): |
11 echo " ", i, ": ", loadResource(i)[] | 11 echo " ", i, ": ", loadResource(i).readAll().len |
12 | 12 |
13 when isMainModule: | 13 when isMainModule: |
14 main() | 14 main() |