Skip to content
Snippets Groups Projects
Commit 5615e656 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Strip 0xff chars from strings read from .cnf files

Some unused/padding bytes are written as 0xff, so don't build strings from
those chars.
parent 8a1b3cb7
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -21,7 +21,7 @@ var CNF = new (function() { ...@@ -21,7 +21,7 @@ var CNF = new (function() {
} }
else { else {
var s = file.read(bytes); var s = file.read(bytes);
return s.replace(/\0/g,''); return s.replace(/\0|\xff/g,'');
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment