Beispiel #1
0
 private SPUOpcodeTable()
 {
     Opcodes = new SPUOpcodeTree();
     StreamReader sr = new StreamReader(File.OpenRead("opcodes.txt"));
     string line;
     while((line = sr.ReadLine()) != null)
     {
         if (line != "" && (line[0] == '0' || line[0] == '1'))
         {
             string[] cmdparts = line.Split((",").ToCharArray());
             Opcodes.setTreeNodeData(cmdparts[0], cmdparts);
         }
     }
 }
        private SPUOpcodeTable()
        {
            Opcodes = new SPUOpcodeTree();
            StreamReader sr = new StreamReader(File.OpenRead("opcodes.txt"));
            string       line;

            while ((line = sr.ReadLine()) != null)
            {
                if (line != "" && (line[0] == '0' || line[0] == '1'))
                {
                    string[] cmdparts = line.Split((",").ToCharArray());
                    Opcodes.setTreeNodeData(cmdparts[0], cmdparts);
                }
            }
        }