mirror of
https://git.sanhost.net/sanasol/hytale-f2p
synced 2026-02-26 10:31:47 -03:00
Add files via upload
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user