Пример #1
0
        public void TestLz4()
        {
            var      resPath   = Path.Combine(Environment.CurrentDirectory, @"..\..\Res");
            var      path      = Path.Combine(resPath, "dx_真闇_裸_lz4_linked.psb");
            Lz4Shell shell     = new Lz4Shell();
            var      context   = new Dictionary <string, object>();
            var      oriStream = File.OpenRead(path);
            var      psbStream = shell.ToPsb(oriStream, context);
            var      psb       = new PSB(psbStream);
            var      pszStream = shell.ToShell(psb.ToStream(), context) as MemoryStream;

            File.WriteAllBytes("test.lz4", pszStream.ToArray());
        }