Skip to content

Instantly share code, notes, and snippets.

@Hoikas
Created January 14, 2012 08:49
Show Gist options
  • Save Hoikas/1610740 to your computer and use it in GitHub Desktop.
Save Hoikas/1610740 to your computer and use it in GitHub Desktop.
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