20 lines
No EOL
594 B
C#
20 lines
No EOL
594 B
C#
using System;
|
|
using System.IO;
|
|
using System.Linq;
|
|
|
|
namespace SerializePreloadDLL
|
|
{
|
|
public class SerializeFile
|
|
{
|
|
public void Generate(string dataroot, string platform, string srcfile, string dstFile)
|
|
{
|
|
var files = File.ReadAllLines(srcfile);
|
|
var engine = new engineWrapper("SerializePreload");
|
|
var cookWrapper = new cookerWrapper();
|
|
cookWrapper.initForPreload(dataroot);
|
|
cookWrapper.generatePreload(dstFile, platform, files);
|
|
cookWrapper.destroy();
|
|
engine.destroy();
|
|
}
|
|
}
|
|
} |