diff options
Diffstat (limited to 'src/loader/file.nim')
-rw-r--r-- | src/loader/file.nim | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/loader/file.nim b/src/loader/file.nim index 5d552e40..cdb7afc2 100644 --- a/src/loader/file.nim +++ b/src/loader/file.nim @@ -108,11 +108,7 @@ proc loadFile(handle: LoaderHandle, istream: Stream) = if n < bufferSize: break -proc loadFilePath*(handle: LoaderHandle, url: URL) = - when defined(windows) or defined(OS2) or defined(DOS): - let path = url.path.serialize_unicode_dos() - else: - let path = url.path.serialize_unicode() +proc loadFilePath*(handle: LoaderHandle, url: URL, path: string) = let istream = newFileStream(path, fmRead) if istream == nil: if dirExists(path): |