fix languages list

This commit is contained in:
SpikeHD 2022-04-22 23:45:43 -07:00
parent 0fc48e8302
commit e4d70f4e02
2 changed files with 7 additions and 0 deletions

View File

@ -499,6 +499,10 @@ async function getLanguages() {
const languageFiles = (await filesystem.readDirectory(`${NL_CWD}/languages`)).filter(file => file.entry.endsWith('.json'))
const config = await getCfg()
// Clear language options
const languageSelect = document.querySelector('#languageSelect')
languageSelect.innerHTML = ''
// Load all languages as options
for (const file of languageFiles) {
const fullLanguageName = JSON.parse(await filesystem.readFile(`${NL_CWD}/languages/${file.entry}`)).fullLangName

View File

@ -11,4 +11,7 @@ set GRASSCUTTER_JAR=%GRASSCUTTER_JAR:"=%
echo Starting local Grasscutter server...
:: Change dir to server directory
start /b java -jar %GRASSCUTTER_JAR%