strip null characters from rom title

This commit is contained in:
Evan Barger 2020-04-01 20:51:35 -04:00
parent d8d06ac7f4
commit 2274f5cc8d

View File

@ -61,8 +61,8 @@ class ROM {
let file = new FileSeeker(arrayBuffer);
file.seek(0x134);
this.title = String.fromCharCode(...file.read(0xF));
this.menuText = this.title.replace(/\0/g, '');
this.title = String.fromCharCode(...file.read(0xF)).replace(/\0/g, '');
this.menuText = this.title;
file.seek(0x143);
let cgbByte = file.readByte();