Add files via upload

This commit is contained in:
AMIAY
2026-01-18 15:42:24 +01:00
committed by GitHub
parent be1a24a992
commit 7ede6c2f27
5 changed files with 110 additions and 9 deletions

View File

@@ -30,6 +30,24 @@ export function setupInstallation() {
if (installPlayerName) {
installPlayerName.addEventListener('change', savePlayerName);
}
if (window.electronAPI && window.electronAPI.onProgressUpdate) {
window.electronAPI.onProgressUpdate((data) => {
if (window.LauncherUI) {
window.LauncherUI.showProgress();
window.LauncherUI.updateProgress(data);
}
});
}
if (window.electronAPI && window.electronAPI.onProgressComplete) {
window.electronAPI.onProgressComplete(() => {
if (window.LauncherUI) {
window.LauncherUI.hideProgress();
}
resetInstallButton();
});
}
}
export async function installGame() {