mirror of
https://github.com/orangeglo/gbnp.git
synced 2026-07-06 20:13:57 -05:00
strip null characters from rom title
This commit is contained in:
parent
d8d06ac7f4
commit
2274f5cc8d
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user