Exemplo n.º 1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="code"></param>
        /// <param name="instructionIndex"></param>
        /// <returns></returns>
        public Modification GetInlineCode( AVM1Code code, int instructionIndex )
        {
            List<string> all = new List<string>();
            for ( int i = 0; i < _Check.Count; i++ )
            {
                for ( int j = 0; j < _Check[ i ].InlineSource.Count; j++ )
                {
                    all.Add( _Check[ i ].InlineSource[ j ] );

                }
            }

            Modification m = new Modification( (uint)instructionIndex, code[ instructionIndex ], "OriginalAction" );
            m.Load( all, new List<ModVariable>() );
            return m;
        }