espcevan
Sorceror
Okay, I have this down to one error at the moment.
byte[] data = list.Compile(false);
Code:
Errors:
+ Customs/Extended Localizer - PropertyList-2-StringList/OPLWrapper.cs:
CS1501: Line 42: No overload for method 'Compile' takes '1' arguments
byte[] data = list.Compile(false);
Code:
public string[] GetString(string language)
{
byte[] data = list.Compile(false);
ArrayList msgs = new ArrayList();
GoodPacketReader reader = new GoodPacketReader(data, false);
reader.Seek(15, System.IO.SeekOrigin.Begin);
int msgNum = -1;
for (int i = 15; i < data.Length - 4; )
{
msgNum = reader.ReadInt32();
int paramLength = reader.ReadInt16() / 2;
string param = "";
if (paramLength > 0)
{
param = reader.ReadUnicodeStringLE(paramLength);
}
string msg = Localizer.GetFormat(language, msgNum, param);
msgs.Add(msg);
i += 6 + paramLength;
}