Skip to content

Commit

Permalink
Updated BOM check to use what was in string_from_file.
Browse files Browse the repository at this point in the history
This excludes the optional bool from string_from_file. Since this shouldn't really affect any other CSVs, there's no harm in checking anyway.
  • Loading branch information
tabularelf committed Sep 5, 2021
1 parent c5fcc84 commit ea34671
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/snap_from_csv/snap_from_csv.gml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ function snap_from_csv()
var _in_string = false;
var _string_cell = false;

var _bom_a = buffer_peek( _buffer, 0, buffer_u8);
var _bom_b = buffer_peek( _buffer, 1, buffer_u8);
var _bom_c = buffer_peek( _buffer, 2, buffer_u8);
if (( _bom_a == 0xEF) && ( _bom_b == 0xBB) && ( _bom_c == 0xBF) ) {
if ((buffer_get_size(_buffer) >= 4) && (buffer_peek(_buffer, 0, buffer_u32) & 0xFFFFFF == 0xBFBBEF)) {
buffer_seek(_buffer, buffer_seek_start, 3);
_size -= 3;
_word_start += 3;
Expand Down

0 comments on commit ea34671

Please sign in to comment.