mirror of
https://github.com/amiayweb/Hytale-F2P.git
synced 2026-02-26 12:41:46 -03:00
fix installation branch
This commit is contained in:
@@ -60,18 +60,11 @@ export async function installGame() {
|
|||||||
const playerName = (installPlayerName ? installPlayerName.value.trim() : '') || 'Player';
|
const playerName = (installPlayerName ? installPlayerName.value.trim() : '') || 'Player';
|
||||||
const installPath = installPathInput ? installPathInput.value.trim() : '';
|
const installPath = installPathInput ? installPathInput.value.trim() : '';
|
||||||
|
|
||||||
// Récupérer la branche sélectionnée
|
|
||||||
const selectedBranchRadio = document.querySelector('input[name="installBranch"]:checked');
|
const selectedBranchRadio = document.querySelector('input[name="installBranch"]:checked');
|
||||||
const selectedBranch = selectedBranchRadio ? selectedBranchRadio.value : 'release';
|
const selectedBranch = selectedBranchRadio ? selectedBranchRadio.value : 'release';
|
||||||
|
|
||||||
console.log(`[Install] Installing game with branch: ${selectedBranch}`);
|
console.log(`[Install] Installing game with branch: ${selectedBranch}`);
|
||||||
|
|
||||||
// Sauvegarder la branche sélectionnée dans le config
|
|
||||||
if (window.electronAPI && window.electronAPI.saveVersionBranch) {
|
|
||||||
await window.electronAPI.saveVersionBranch(selectedBranch);
|
|
||||||
console.log(`[Install] Branch saved to config: ${selectedBranch}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (window.LauncherUI) window.LauncherUI.showProgress();
|
if (window.LauncherUI) window.LauncherUI.showProgress();
|
||||||
isDownloading = true;
|
isDownloading = true;
|
||||||
if (installBtn) {
|
if (installBtn) {
|
||||||
|
|||||||
Reference in New Issue
Block a user