mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-01-18 18:46:43 +00:00
Bugfix require() not replacing dots with slashes
This commit is contained in:
parent
dc7d6bde27
commit
e5e2d58f62
1 changed files with 3 additions and 0 deletions
|
@ -164,6 +164,9 @@ internal class Sandbox
|
||||||
|
|
||||||
var libname = L.CheckString(1);
|
var libname = L.CheckString(1);
|
||||||
var searchpath = L.CheckString(2);
|
var searchpath = L.CheckString(2);
|
||||||
|
|
||||||
|
libname = libname.Replace('.', '/');
|
||||||
|
|
||||||
var possiblePaths = searchpath
|
var possiblePaths = searchpath
|
||||||
.Split(';')
|
.Split(';')
|
||||||
.Select(p => p.Replace("?", libname));
|
.Select(p => p.Replace("?", libname));
|
||||||
|
|
Loading…
Reference in a new issue