  } catch (err) {
                console.error('Error selecting directory:', err);
            }
        }

        async function updateDlcDirectory() {
            const dlcDirectory = document.getElementById('dlcDirectory').value;
            try {
                const response = await fetch('/api/updateDlcDirectory', {
                    method: 'POST',
                    headers: {
                        'Content-Type': 'application/json'
                    },
                    body: JSON.strin