We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f272c9 commit 6845ad6Copy full SHA for 6845ad6
GameFrameX.Config/ConfigComponent.cs
@@ -27,6 +27,12 @@ public async void LoadConfig()
27
LogHelper.Info("== load success ==");
28
}
29
30
+ private static async Task<ByteBuf> Loader(string file, bool tag)
31
+ {
32
+ var configBytes = await File.ReadAllBytesAsync($"json/{file}.bytes");
33
+ return ByteBuf.Wrap(configBytes);
34
+ }
35
+
36
private static async Task<JsonElement> Loader(string file)
37
{
38
var configJson = await File.ReadAllTextAsync($"json/{file}.json");
0 commit comments