# HG changeset patch # User sam # Date 1711378344 25200 # Node ID 8467ce0d99dedc4ae67c12551c6600cce9fa02f2 # Parent 02826a8be8f20709861933c590c8374bab5e0b27 fix: windows paths diff -r 02826a8be8f2 -r 8467ce0d99de semicongine/resources.nim --- 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 =