this.emit("data_changed"); | this.emit("data_changed"); | ||||
} | } | ||||
get access_offset_length(){ | |||||
switch(this.__AccessMode){ | |||||
case NESBank.ACCESSMODE_4K: | |||||
return 2; | |||||
case NESBank.ACCESSMODE_2K: | |||||
return 4; | |||||
case NESBank.ACCESSMODE_1K: | |||||
return 8; | |||||
} | |||||
return 0; | |||||
} | |||||
get json(){ | get json(){ | ||||
JSON.stringify({ | JSON.stringify({ | ||||
LP: this.__LP.map(x=>x.base64), | LP: this.__LP.map(x=>x.base64), |