@@ -27,7 +27,7 @@ private static void TryCreateDirectory(string path)
2727 Directory . CreateDirectory ( path ) ;
2828 }
2929
30- private static void MountDlls ( string [ ] rawDlls )
30+ private static void MountDlls ( string root , string [ ] rawDlls )
3131 {
3232 IEnumerable < Dll > dlls = rawDlls . Select ( x =>
3333 {
@@ -37,7 +37,7 @@ private static void MountDlls(string[] rawDlls)
3737
3838 // mono.cecil searches in /bin for some dlls
3939 Directory . CreateDirectory ( "/bin" ) ;
40- mount_fetch ( "_framework/" , "/fetchdlls/" ) ;
40+ mount_fetch ( root + "_framework/" , "/fetchdlls/" ) ;
4141 foreach ( var dll in dlls )
4242 {
4343 int ret = mount_fetch_file ( $ "/fetchdlls/{ dll . RealName } ") ;
@@ -50,7 +50,7 @@ private static void MountDlls(string[] rawDlls)
5050 }
5151
5252 [ JSExport ]
53- public static async Task MountFilesystems ( string [ ] rawDlls )
53+ public static async Task MountFilesystems ( string root , string [ ] rawDlls )
5454 {
5555 try
5656 {
@@ -66,7 +66,7 @@ public static async Task MountFilesystems(string[] rawDlls)
6666 File . CreateSymbolicLink ( "/Content" , "/libsdl/Content" ) ;
6767 File . CreateSymbolicLink ( "/Saves" , "/libsdl/Celeste/Saves" ) ;
6868 File . CreateSymbolicLink ( "/remote/%GameInstall%Saves" , "/libsdl/Celeste/Saves" ) ;
69- MountDlls ( rawDlls ) ;
69+ MountDlls ( root , rawDlls ) ;
7070 }
7171 catch ( Exception err )
7272 {
0 commit comments