# HG changeset patch # User sam # Date 1711378344 25200 # Node ID 638138ba622e39bfe3ddac4332556e206f129272 # Parent 24e11122661e2424dbeedeed5dda2d26cf32ce5e fix: windows paths diff -r 24e11122661e -r 638138ba622e 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 =