Avoid unnecessary memory copying.

This commit is contained in:
Crsky
2025-09-28 00:41:39 +08:00
parent 55dd3764eb
commit f1c31aa347
2 changed files with 4 additions and 11 deletions

View File

@@ -18,7 +18,7 @@ namespace SchemeTool
{
GameRes.FormatCatalog.Instance.DeserializeScheme(stream);
}
#if false
#if true
using (Stream stream = File.Create(".\\GameData\\Formats.json"))
{
GameRes.FormatCatalog.Instance.SerializeSchemeJson(stream);