Browse Source

Fix bug: standard file field 'IsStringComment'. 2021-08-17 03:51 ZRY.

zry 2 years ago
parent
commit
e2b25c1998
2 changed files with 2 additions and 2 deletions
  1. 1 1
      standard_file.go
  2. 1 1
      standard_gen.go

+ 1 - 1
standard_file.go

@@ -6,7 +6,7 @@ type StandardTapeFile struct {
 	LoadAddress      uint16
 	ExecuteAfterLoad bool
 	ExecuteAddress   uint16
-	isStringComment  bool
+	IsStringComment  bool
 	StringComment    string
 	BinaryComment    []byte
 	File             []byte

+ 1 - 1
standard_gen.go

@@ -62,7 +62,7 @@ func (g *StandardTapeWaveGenerator) writeTapeHeader(f *StandardTapeFile) {
 	} else {
 		hdr_chksum += g.InnerWaveGen.WriteUint16LittleEndian(0x00AD)
 	}
-	if f.isStringComment {
+	if f.IsStringComment {
 		ctw := ConvertStringCommnet(f.StringComment)
 		hdr_chksum += g.InnerWaveGen.WriteCommentRaw(ctw)
 	} else {