Add a start and finish message to resource loading

This commit is contained in:
KingRainbow44 2022-06-26 12:31:09 -04:00
parent 2dcdb839c4
commit 71b118dd9f
7 changed files with 37 additions and 9 deletions

View File

@ -29,6 +29,7 @@ import emu.grasscutter.game.world.SpawnDataEntry.*;
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
import static emu.grasscutter.Configuration.*;
import static emu.grasscutter.utils.Language.translate;
public class ResourceLoader {
@ -52,6 +53,8 @@ public class ResourceLoader {
}
public static void loadAll() {
Grasscutter.getLogger().info(translate("messages.status.resources.loading"));
// Load ability lists
loadAbilityEmbryos();
loadOpenConfig();
@ -68,6 +71,8 @@ public class ResourceLoader {
// Load default home layout
loadHomeworldDefaultSaveData();
loadNpcBornData();
Grasscutter.getLogger().info(translate("messages.status.resources.finish"));
}
public static void loadResources() {

View File

@ -53,7 +53,11 @@
"create_resources": "Creating resources folder...",
"resources_error": "Place a copy of 'BinOutput' and 'ExcelBinOutput' in the resources folder.",
"version": "Grasscutter version: %s-%s",
"game_version": "Game version: %s"
"game_version": "Game version: %s",
"resources": {
"loading": "Loading resources...",
"finish": "Finished loading resources."
}
}
},
"commands": {

View File

@ -53,7 +53,11 @@
"create_resources": "Création du dossier ressources...",
"resources_error": "Placez une copie de 'BinOutput' and 'ExcelBinOutput' dans le dossier ressources.",
"version": "Version de Grasscutter: %s-%s",
"game_version": "Version du jeu: %s"
"game_version": "Version du jeu: %s",
"resources": {
"loading": "Loading resources...",
"finish": "Finished loading resources."
}
}
},
"commands": {
@ -97,7 +101,7 @@
"status": {
"enabled": "Activé",
"disabled": "Desactivé",
"help": "Aide",
"help": "Aide",
"success": "Succès"
},
"account": {
@ -442,4 +446,3 @@
}
}
}

View File

@ -49,7 +49,11 @@
"create_resources": "Tworzenie folderu resources...",
"resources_error": "Umieść kopię 'BinOutput' i 'ExcelBinOutput' w folderze resources.",
"version": "Grasscutter versión: %s-%s",
"game_version": "Game versión: %s"
"game_version": "Game versión: %s",
"resources": {
"loading": "Loading resources...",
"finish": "Finished loading resources."
}
}
},
"commands": {

View File

@ -53,7 +53,11 @@
"create_resources": "Создаём папку ресурсов...",
"resources_error": "Поместите копию папок 'BinOutput' и 'ExcelBinOutput' в папку ресурсов.",
"version": "Версия Grasscutter: %s-%s",
"game_version": "Версия игры: %s"
"game_version": "Версия игры: %s",
"resources": {
"loading": "Loading resources...",
"finish": "Finished loading resources."
}
}
},
"commands": {
@ -97,7 +101,7 @@
"status": {
"enabled": "Включено",
"disabled": "Выключено",
"help": "Помощь",
"help": "Помощь",
"success": "Успех"
},
"account": {

View File

@ -53,7 +53,11 @@
"create_resources": "正在创建 resources 目录...",
"resources_error": "请将 BinOutput 和 ExcelBinOutput 复制到 resources 目录。",
"version": "Grasscutter 版本:%s-%s",
"game_version": "游戏版本:%s"
"game_version": "游戏版本:%s",
"resources": {
"loading": "Loading resources...",
"finish": "Finished loading resources."
}
}
},
"commands": {

View File

@ -53,7 +53,11 @@
"create_resources": "正在建立 resources 資料夾...",
"resources_error": "請將 BinOutput 和 ExcelBinOutput 複製到 resources 資料夾。",
"version": "Grasscutter版本 %s-%s",
"game_version": "遊戲版本:%s"
"game_version": "遊戲版本:%s",
"resources": {
"loading": "Loading resources...",
"finish": "Finished loading resources."
}
}
},
"commands": {