Created
January 14, 2012 08:49
-
-
Save Hoikas/1610740 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Plasma; | |
namespace Test { | |
class Program { | |
static void Main(string[] args) { | |
plSDLMgr mgr = new plSDLMgr(); | |
mgr.ReadDescriptors("G:\\Plasma\\Games\\CWE plClient\\SDL"); | |
plStateDataRecord cli2srv = mgr.ParseStateRecord(ReadFile("C:\\Development\\Plasma\\Tools\\read.dat"), new plResManager()); | |
plStateDataRecord srv2cli = mgr.ParseStateRecord(ReadFile("C:\\Development\\Plasma\\Tools\\write.dat"), new plResManager()); | |
} | |
static byte[] ReadFile(string file) { | |
hsStream s = new hsStream(file); | |
byte[] buf = s.ReadBytes((int)s.BaseStream.Length); | |
s.Close(); | |
return buf; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment