Skip to content

Commit 729d538

Browse files
committed
try fix aquamai local install
1 parent af43fde commit 729d538

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

MaiChartManager/Controllers/Mod/InstallationController.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ public void InstallAquaMai()
174174
var src = Path.Combine(StaticSettings.exeDir, "AquaMai.dll");
175175
var dest = Path.Combine(StaticSettings.GamePath, @"Mods\AquaMai.dll");
176176
Directory.CreateDirectory(Path.GetDirectoryName(dest));
177-
FileSystem.CopyFile(src, dest, true);
177+
using var read = System.IO.File.OpenRead(src);
178+
using var write = System.IO.File.Open(dest, FileMode.Create);
179+
read.CopyTo(write);
178180
}
179181

180182
[HttpPost]

0 commit comments

Comments
 (0)