Browse Source

Also count incbin strings. Fixes #549.

Brucey 4 years ago
parent
commit
77d4cb6945
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ctranslator.bmx

+ 2 - 2
ctranslator.bmx

@@ -6410,9 +6410,9 @@ End If
 		' register incbins
 		' register incbins
 		For Local ib:TIncbin = EachIn app.incbins
 		For Local ib:TIncbin = EachIn app.incbins
 			If opt_legacy_incbin Then
 			If opt_legacy_incbin Then
-				Emit "bbIncbinAdd(&" + TStringConst(app.stringConsts.ValueForKey(ib.file)).id + ",&" + app.munged + "_ib_" + ib.id + "," + ib.length + ");"
+				Emit "bbIncbinAdd((BBString*)&" + StringConstId(ib.file) + ",&" + app.munged + "_ib_" + ib.id + "," + ib.length + ");"
 			Else
 			Else
-				Emit "bbIncbinAdd(&" + TStringConst(app.stringConsts.ValueForKey(ib.file)).id + ",&" + ib.GeneratedDataName(app) + "," + ib.GeneratedSizeName(app) + ");"
+				Emit "bbIncbinAdd((BBString*)&" + StringConstId(ib.file) + ",&" + ib.GeneratedDataName(app) + "," + ib.GeneratedSizeName(app) + ");"
 			End If
 			End If
 		Next
 		Next