protected override String GenerateCommandLineCommands()
        {
            CommandLineBuilder builder = new CommandLineBuilder(false);

            if (!String.IsNullOrEmpty(DLLExport))
            {
                builder.AppendSwitch("--dll-export");
                builder.AppendFileNameIfNotNull(DLLExport);
            }

            if (!HeaderExt.Equals("h"))
            {
                builder.AppendSwitch("--header-ext");
                builder.AppendFileNameIfNotNull(HeaderExt);
            }

            if (!SourceExt.Equals("cpp"))
            {
                builder.AppendSwitch("--source-ext");
                builder.AppendFileNameIfNotNull(SourceExt);
            }

            if (!String.IsNullOrEmpty(BaseDirectoryForGeneratedInclude))
            {
                builder.AppendSwitch("--include-dir");
                builder.AppendFileNameIfNotNull(BaseDirectoryForGeneratedInclude);
            }
            builder.AppendTextUnquoted(" ");
            builder.AppendTextUnquoted(base.GenerateCommandLineCommands());

            return(builder.ToString());
        }
Example #2
0
        public void EnumerateSubrecordsDirect()
        {
            byte[] b = new byte[]
            {
                0x01, 0x02,
                0x4D, 0x41, 0x53, 0x54, 0x4, 0x00, 0x01, 0x02, 0x03, 0x04,
                0x44, 0x41, 0x54, 0x41, 0x4, 0x00, 0x09, 0x08, 0x07, 0x06
            };
            var recs = HeaderExt.EnumerateSubrecords(b, GameConstants.Oblivion, 2)
                       .ToList();

            recs.Should().HaveCount(2);
            recs[0].RecordType.Should().Be(RecordTypes.MAST);
            recs[1].RecordType.Should().Be(RecordTypes.DATA);
            recs[0].ContentLength.Should().Be(4);
            recs[1].ContentLength.Should().Be(4);
            recs[0].AsInt32().Should().Be(0x04030201);
            recs[1].AsInt32().Should().Be(0x06070809);
        }
Example #3
0
 /// <inheritdoc/>
 public IEnumerator <MajorRecordPinFrame> GetEnumerator() => HeaderExt.EnumerateRecords(this).GetEnumerator();
Example #4
0
 /// <inheritdoc/>
 public IEnumerator <SubrecordPinFrame> GetEnumerator() => HeaderExt.EnumerateSubrecords(this).GetEnumerator();