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
2dcdb839
Commit
2dcdb839
authored
Jun 26, 2022
by
KingRainbow44
Browse files
Move resource loading messages to the `debug` level
parent
091d8c69
Changes
2
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/data/ResourceLoader.java
View file @
2dcdb839
...
...
@@ -32,7 +32,7 @@ import static emu.grasscutter.Configuration.*;
public
class
ResourceLoader
{
private
static
List
<
String
>
loadedResources
=
new
ArrayList
<
String
>();
private
static
final
List
<
String
>
loadedResources
=
new
ArrayList
<>();
public
static
List
<
Class
<?>>
getResourceDefClasses
()
{
Reflections
reflections
=
new
Reflections
(
ResourceLoader
.
class
.
getPackage
().
getName
());
...
...
@@ -103,8 +103,8 @@ public class ResourceLoader {
for
(
String
name
:
type
.
name
())
{
loadFromResource
(
c
,
name
,
map
);
}
Grasscutter
.
getLogger
().
info
(
"Loaded "
+
map
.
size
()
+
" "
+
c
.
getSimpleName
()
+
"s."
);
loadedResources
.
add
(
c
.
getSimpleName
());
Grasscutter
.
getLogger
().
debug
(
"Loaded "
+
map
.
size
()
+
" "
+
c
.
getSimpleName
()
+
"s."
);
}
}
...
...
@@ -173,9 +173,9 @@ public class ResourceLoader {
List
<
AbilityEmbryoEntry
>
embryoList
=
null
;
// Read from cached file if exists
try
(
InputStream
embryoCache
=
DataLoader
.
load
(
"AbilityEmbryos.json"
,
false
))
{
try
(
InputStream
embryoCache
=
DataLoader
.
load
(
"AbilityEmbryos.json"
,
false
))
{
embryoList
=
Grasscutter
.
getGsonFactory
().
fromJson
(
new
InputStreamReader
(
embryoCache
),
TypeToken
.
getParameterized
(
Collection
.
class
,
AbilityEmbryoEntry
.
class
).
getType
());
}
catch
(
Exception
ignored
)
{}
}
catch
(
Exception
ignored
)
{}
if
(
embryoList
==
null
)
{
// Load from BinOutput
...
...
@@ -393,7 +393,7 @@ public class ResourceLoader {
GameData
.
getMainQuestDataMap
().
put
(
mainQuest
.
getId
(),
mainQuest
);
}
Grasscutter
.
getLogger
().
info
(
"Loaded "
+
GameData
.
getMainQuestDataMap
().
size
()
+
" MainQuestDatas."
);
Grasscutter
.
getLogger
().
debug
(
"Loaded "
+
GameData
.
getMainQuestDataMap
().
size
()
+
" MainQuestDatas."
);
}
@SneakyThrows
...
...
@@ -413,7 +413,7 @@ public class ResourceLoader {
GameData
.
getHomeworldDefaultSaveData
().
put
(
Integer
.
parseInt
(
sceneId
),
data
);
}
Grasscutter
.
getLogger
().
info
(
"Loaded "
+
GameData
.
getHomeworldDefaultSaveData
().
size
()
+
" HomeworldDefaultSaveDatas."
);
Grasscutter
.
getLogger
().
debug
(
"Loaded "
+
GameData
.
getHomeworldDefaultSaveData
().
size
()
+
" HomeworldDefaultSaveDatas."
);
}
@SneakyThrows
...
...
@@ -434,7 +434,7 @@ public class ResourceLoader {
GameData
.
getSceneNpcBornData
().
put
(
data
.
getSceneId
(),
data
);
}
Grasscutter
.
getLogger
().
info
(
"Loaded "
+
GameData
.
getSceneNpcBornData
().
size
()
+
" SceneNpcBornDatas."
);
Grasscutter
.
getLogger
().
debug
(
"Loaded "
+
GameData
.
getSceneNpcBornData
().
size
()
+
" SceneNpcBornDatas."
);
}
// BinOutput configs
...
...
src/main/java/emu/grasscutter/game/dungeons/challenge/DungeonChallenge.java
View file @
2dcdb839
...
...
@@ -52,7 +52,7 @@ public class DungeonChallenge extends WorldChallenge {
dungeonDropData
.
put
(
entry
.
getDungeonId
(),
entry
.
getDrops
());
}
Grasscutter
.
getLogger
().
info
(
"Loaded {} dungeon drop data entries."
,
dungeonDropData
.
size
());
Grasscutter
.
getLogger
().
debug
(
"Loaded {} dungeon drop data entries."
,
dungeonDropData
.
size
());
}
catch
(
Exception
ex
)
{
Grasscutter
.
getLogger
().
error
(
"Unable to load dungeon drop data."
,
ex
);
...
...
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