public string getText(Text.table tableFile, byte[] ROM, int entryOffset)
            {
                if (!TextBox)
                    return null;

                byte[] data = new byte[NumberOfBytes];
                for (int i = 0; i < data.Length; i++)
                {
                    data[i] = ROM[entryOffset + Offset + i];
                }

                string text;
                if (tableFile == null)
                {
                    char[] charText = new char[data.Length];
                    for (int i = 0; i < charText.Length; i++)
                    {
                        charText[i] = (char)data[i];
                    }
                    text = new string(charText);
                }
                else
                    text = tableFile.getText(data);

                return text;
            }
Example #2
0
 static void Main(string[] args)
 {
     Console.Write(Text.getText());
 }