Fix data paths in generated convert/convert.r

Previously, the Rez file would have entries like this:

    read 'cmap' (128, "Roman") "roman";

That has been fixed to show this:

    read 'cmap' (128, "Roman") "charmap_roman.dat";
This commit is contained in:
Dietrich Epp 2022-11-13 16:19:41 -05:00
parent 0ba00114d6
commit 8e04863cda

View File

@ -61,7 +61,7 @@ func writeRez(d *scriptdata, filename string) error {
writeStrings(w, `rSTRS_Regions, "Regions"`, constStrings(&d.regions))
for i, cm := range d.charmaps {
if cm.filename != "" {
fmt.Fprintf(w, "read 'cmap' (%d, %q) %q;\n", 128+i,, cm.filename)
fmt.Fprintf(w, "read 'cmap' (%d, %q) %q;\n", 128+i,, "charmap_"+cm.filename+".dat")