Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

# Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
- name: Upload build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: MSIX Package
path: BypassReplacer\bin\x64\Release\
10 changes: 6 additions & 4 deletions BypassReplacer/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public MainWindow()
List<Process> multiProcess = new List<Process>();
string filePath = "";
string filePathMinecraft = "";
string replacePath = "\\Minigames\\";
string replaceName = "minecraft.jar";
string replacePath = "\\Minigames\\libraries\\";
string replaceName = "feder-live-SNAPSHOT.jar";

// TODO Serega007 всё это не используется так как это отжирает % ЦП, на моём 20-ти ядерном Xeon 5% WMI отжирал, но на каком-нибудь 2-х ядерном Atom это наверно будет очень больно
/*try
Expand Down Expand Up @@ -212,8 +212,8 @@ public MainWindow()
}
}
File.Delete(filePath);
CreateSymbolicLink(filePath, "C:\\Xenoceal\\" + replaceName, SymbolicLink.File);
//File.Copy("C:\\Xenoceal\\" + replaceName, filePath, overwrite: true);
//CreateSymbolicLink(filePath, "C:\\Xenoceal\\" + replaceName, SymbolicLink.File);
File.Copy("C:\\Xenoceal\\" + replaceName, filePath, overwrite: true);
JavaProcess(currProcess, true);

Console.WriteLine("Ждём запуска майнкрафта...");
Expand Down Expand Up @@ -247,6 +247,8 @@ public MainWindow()

Console.WriteLine("Подмена 2...");
Dispatcher.Invoke(() => inform.Text = "Подмена 2...");
// TODO временно
//Thread.Sleep(100);
JavaProcess(currProcess, false);
if (multiProcess.Count > 0)
{
Expand Down