changeset 934:638138ba622e

fix: windows paths
author sam <sam@basx.dev>
date Mon, 25 Mar 2024 07:52:24 -0700
parents 24e11122661e
children 4b7914fa615f
files semicongine/resources.nim
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/semicongine/resources.nim	Sun Mar 24 21:47:54 2024 +0700
+++ b/semicongine/resources.nim	Mon Mar 25 07:52:24 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.normalizeDir] = staticRead(packageDir.joinPath(resourcefile))
+          result[package][resourcefile.replace('\\', '/')] = staticRead(packageDir.joinPath(resourcefile))
   const bundledResources = loadResources()
 
   proc loadResource_intern(path: string, package: string): Stream =