# HG changeset patch # User sam # Date 1711291674 -25200 # Node ID 02826a8be8f20709861933c590c8374bab5e0b27 # Parent ad8a927d038afdb73a43fa653480644b78f84e81 fix: windows path not working correctly diff -r ad8a927d038a -r 02826a8be8f2 semicongine/resources.nim --- 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 =