Pārlūkot izejas kodu

NESBank will not emit 'data_changed' when the access mode has been changed.

dev-bank
Bryan Miller pirms 6 gadiem
vecāks
revīzija
545329f804
1 mainītis faili ar 9 papildinājumiem un 3 dzēšanām
  1. +9
    -3
      app/js/models/NESBank.js

+ 9
- 3
app/js/models/NESBank.js Parādīt failu

@@ -61,11 +61,17 @@ export default class NESBank extends ISurface{
throw new TypeError("Access mode expected to be integer.");
switch(m){
case NESBank.ACCESSMODE_SPRITE:
this.__AccessMode = NESBank.ACCESSMODE_SPRITE; break;
this.__AccessMode = NESBank.ACCESSMODE_SPRITE;
this.emit("data_changed");
break;
case NESBank.ACCESSMODE_BACKGROUND:
this.__AccessMode = NESBank.ACCESSMODE_BACKGROUND; break;
this.__AccessMode = NESBank.ACCESSMODE_BACKGROUND;
this.emit("data_changed");
break;
case NESBank.ACCESSMODE_FULL:
this.__AccessMode = NESBank.ACCESSMODE_FULL; break;
this.__AccessMode = NESBank.ACCESSMODE_FULL;
this.emit("data_changed");
break;
}
}


Notiek ielāde…
Atcelt
Saglabāt