launch osu updater before launching to verify all files

This commit is contained in:
2024-01-24 16:31:34 +01:00
parent 8c09719b43
commit 4348c36fa0
4 changed files with 261 additions and 12 deletions

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,
};