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

@@ -119,6 +119,15 @@ async function loadAllSettings() {
await loadPlayerName();
}
async function openGameLocation() {
try {
if (window.electronAPI && window.electronAPI.openGameLocation) {
await window.electronAPI.openGameLocation();
}
} catch (error) {
console.error('Error opening game location:', error);
}
}
export function getCurrentJavaPath() {
if (customJavaCheck && customJavaCheck.checked && customJavaPath) {
@@ -135,6 +144,9 @@ export function getCurrentPlayerName() {
return 'Player';
}
// Make openGameLocation globally available
window.openGameLocation = openGameLocation;
document.addEventListener('DOMContentLoaded', initSettings);
window.SettingsAPI = {