Commit 71b118dd authored by KingRainbow44's avatar KingRainbow44
Browse files

Add a start and finish message to resource loading

parent 2dcdb839
...@@ -29,6 +29,7 @@ import emu.grasscutter.game.world.SpawnDataEntry.*; ...@@ -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 { ...@@ -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 { ...@@ -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() {
......
...@@ -53,7 +53,11 @@ ...@@ -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": {
......
...@@ -53,7 +53,11 @@ ...@@ -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": {
...@@ -442,4 +446,3 @@ ...@@ -442,4 +446,3 @@
} }
} }
} }
\ No newline at end of file
...@@ -49,7 +49,11 @@ ...@@ -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": {
......
...@@ -53,7 +53,11 @@ ...@@ -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": {
......
...@@ -53,7 +53,11 @@ ...@@ -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": {
......
...@@ -53,7 +53,11 @@ ...@@ -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": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment