changeset 1043:8467ce0d99de

fix: windows paths
author sam <sam@basx.dev>
date Mon, 25 Mar 2024 07:52:24 -0700
parents 02826a8be8f2
children cdf7ad53965a
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 =