mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-15 08:24:52 +01:00
campaign UI working
This commit is contained in:
30
ProtobufViewUtil/Program.cs
Normal file
30
ProtobufViewUtil/Program.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using Google.Protobuf;
|
||||
using nksrv;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace ProtobufViewUtil
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Hello, World!");
|
||||
|
||||
ResGetScenarioList s = new ResGetScenarioList();
|
||||
var inn = File.ReadAllBytes(@"C:\NIKKE\NIKKE\game\ses1\output-49");
|
||||
s.MergeFrom(inn);
|
||||
Console.WriteLine(s.ToString());
|
||||
var outt = s.ToByteArray();
|
||||
|
||||
if (inn.SequenceEqual(outt))
|
||||
{
|
||||
Console.WriteLine("Check OK");
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Check FAIL");
|
||||
}
|
||||
Debugger.Break();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user