diff --git a/script/gbnp.js b/script/gbnp.js index 5555e06..7ad1a27 100644 --- a/script/gbnp.js +++ b/script/gbnp.js @@ -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();