瀏覽代碼

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

dev-bank
Bryan Miller 5 年之前
父節點
當前提交
ba63481879
共有 1 個檔案被更改,包括 12 行新增0 行删除
  1. +12
    -0
      app/js/models/NESBank.js

+ 12
- 0
app/js/models/NESBank.js 查看文件

@@ -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…
取消
儲存