Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
71b118dd
Commit
71b118dd
authored
Jun 26, 2022
by
KingRainbow44
Browse files
Add a start and finish message to resource loading
parent
2dcdb839
Changes
7
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/data/ResourceLoader.java
View file @
71b118dd
...
@@ -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
()
{
...
...
src/main/resources/languages/en-US.json
View file @
71b118dd
...
@@ -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"
:
{
...
...
src/main/resources/languages/fr-FR.json
View file @
71b118dd
...
@@ -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
src/main/resources/languages/pl-PL.json
View file @
71b118dd
...
@@ -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"
:
{
...
...
src/main/resources/languages/ru-RU.json
View file @
71b118dd
...
@@ -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"
:
{
...
...
src/main/resources/languages/zh-CN.json
View file @
71b118dd
...
@@ -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"
:
{
...
...
src/main/resources/languages/zh-TW.json
View file @
71b118dd
...
@@ -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"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment