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

View File

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

View File

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

View File

@ -49,7 +49,11 @@
"create_resources": "Tworzenie folderu resources...", "create_resources": "Tworzenie folderu resources...",
"resources_error": "Umieść kopię 'BinOutput' i 'ExcelBinOutput' w folderze resources.", "resources_error": "Umieść kopię 'BinOutput' i 'ExcelBinOutput' w folderze resources.",
"version": "Grasscutter versión: %s-%s", "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": { "commands": {

View File

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

View File

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

View File

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