nurpax / petmate

PETSCII editor with Electron/React/Redux
MIT License
178 stars 14 forks source link

BUG: Program Importer cannot read what program exported. (.c files) #207

Open wbochar opened 3 years ago

wbochar commented 3 years ago

If I create a PETMATE file with a 16x120 PETSCII Image (the only defined one in the file) (default blank/blueltblue BG/Border)

file exported: unsigned char frame0000[]={// border,bg,chars,colors 14,6, 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32, 32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32, .... 14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14, 14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14 }; // META: 16 120 C64 upper

When imported back into the source that created it, the program throws an error that its not a valid .c file.

nurpax commented 3 years ago

Thanks for the report. Clearly a bug! PETSCII importer was the first importer I wrote for Petmate and I wrote it before there was any support for non 40x25 sizes or lowercase charsets, maybe something to do with that.

nurpax commented 3 years ago

Fixed in the github version. Started upgrading Electron while at it, maybe I'll make a release with this fix and new Electron. The new Electron should support Apple M1 which might be a nice selling point for making a new release.. not that I can test it myself.