changeset 1042:02826a8be8f2

fix: windows path not working correctly
author sam <sam@basx.dev>
date Sun, 24 Mar 2024 21:47:54 +0700
parents ad8a927d038a
children 8467ce0d99de
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 =