launch osu updater before launching to verify all files

This commit is contained in:
HorizonCode committed 2024-01-24 16:31:34 +01:00
1 parent 8c09719b43
commit 4348c36fa0
4 files changed
+261 -12

No files matched your search

+6
View File
@@ -245,6 +245,11 @@ function downloadUpdateFiles(osuPath, updateFiles) {
};
}
function runOsuUpdater(osuPath, onExit) {
const osuExecuteable = path.join(osuPath, "osu!.exe");
runFile(osuPath, osuExecuteable, ["-repair"], onExit);
}
function runOsuWithDevServer(osuPath, serverDomain, onExit) {
const osuExecuteable = path.join(osuPath, "osu!.exe");
runFile(osuPath, osuExecuteable, ["-devserver", serverDomain], onExit);
@@ -475,4 +480,5 @@ module.exports = {
replaceUIFile,
findOsuInstallation,
updateOsuConfigHashes,
runOsuUpdater,
};