Skip to content

Commit 6845ad6

Browse files
committed
[增加]1. 增加二进制加载函数的适配
1 parent 0f272c9 commit 6845ad6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

GameFrameX.Config/ConfigComponent.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ public async void LoadConfig()
2727
LogHelper.Info("== load success ==");
2828
}
2929

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+
3036
private static async Task<JsonElement> Loader(string file)
3137
{
3238
var configJson = await File.ReadAllTextAsync($"json/{file}.json");

0 commit comments

Comments
 (0)