# HG changeset patch # User sam # Date 1711291674 -25200 # Node ID 24e11122661e2424dbeedeed5dda2d26cf32ce5e # Parent c7f37ab146e4ff7f1df96922b85a9a96dcd40061 fix: windows path not working correctly diff -r c7f37ab146e4 -r 24e11122661e 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 =