this also means, that snapshots change their format again and have to be redone
the interface definition now contains all these informations for use in your code
Code: Select all
public class ChunkInfo
{
public string id;
public string toc;
public string bundle;
public byte[] sha1;
public ChunkInfo(string _id, string _toc, string _bundle, byte[] _sha1)
{
id = _id;
toc = _toc;
bundle = _bundle;
sha1 = _sha1;
}
}
public class DataInfo
{
public int type; //0=ebx
public string path;
public string toc;
public string bundle;
public byte[] sha1;
public byte[] idata;
public DataInfo(int _type, string _path, string _toc, string _bundle, byte[] _sha1, byte[] _idata)
{
type = _type;
path = _path;
toc = _toc;
bundle = _bundle;
sha1 = _sha1;
idata = _idata;
}
}
public interface IPlugin
{
IPluginHost Host { get; set; }
string Name { get; }
void Do();
}
public interface IPluginHost
{
List<string> getTOCFiles();
List<string> getTOCFileLabels();
List<string> getBundleNames(string toc);
List<DataInfo> getAllEBX(string toc, string bundle);
List<DataInfo> getAllRES(string toc, string bundle);
List<ChunkInfo> getAllTocCHUNKs(string toc);
List<ChunkInfo> getAllBundleCHUNKs(string toc, string bundle);
byte[] getDataBySha1(byte[] sha1);
int setDataBySha1(byte[] data, byte[] sha1, string toc);
}
I also attached the source code of the two example plugins
greetz WV