Explorar el Código

Added access_offset_length to NESBank for informational purposes (for UI use).

dev-bank
Bryan Miller hace 5 años
padre
commit
ba63481879
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. +12
    -0
      app/js/models/NESBank.js

+ 12
- 0
app/js/models/NESBank.js Ver fichero

@@ -203,6 +203,18 @@ export default class NESBank extends ISurface{
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(){
JSON.stringify({
LP: this.__LP.map(x=>x.base64),

Cargando…
Cancelar
Guardar