changeset 933:24e11122661e

fix: windows path not working correctly
author sam <sam@basx.dev>
date Sun, 24 Mar 2024 21:47:54 +0700
parents c7f37ab146e4
children 638138ba622e
files semicongine/resources.nim
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/semicongine/resources.nim	Sun Mar 24 19:11:19 2024 +0700
+++ b/semicongine/resources.nim	Sun Mar 24 21:47:54 2024 +0700
@@ -132,7 +132,7 @@
         let package = packageDir.splitPath.tail
         result[package] = Table[string, string]()
         for resourcefile in walkDirRec(packageDir, relative = true):
-          result[package][resourcefile] = staticRead(packageDir.joinPath(resourcefile))
+          result[package][resourcefile.normalizeDir] = staticRead(packageDir.joinPath(resourcefile))
   const bundledResources = loadResources()
 
   proc loadResource_intern(path: string, package: string): Stream =