Browse Source

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

dev-bank
Bryan Miller 5 years ago
parent
commit
ba63481879
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      app/js/models/NESBank.js

+ 12
- 0
app/js/models/NESBank.js View File

@@ -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),

Loading…
Cancel
Save