mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-06-17 11:29:35 +00:00
Don't reset when config applied, also make sure keyboard shortcuts are properly registered
This commit is contained in:
parent
723130c5e0
commit
8bd969ff89
|
@ -147,7 +147,6 @@ public abstract class CPU extends Device {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void attach() {
|
public void attach() {
|
||||||
reset();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
abstract public void JSR(int pointer);
|
abstract public void JSR(int pointer);
|
||||||
|
|
|
@ -36,11 +36,11 @@ public class LawlessComputer extends Apple2e {
|
||||||
|
|
||||||
public void initLawlessLegendsConfiguration() {
|
public void initLawlessLegendsConfiguration() {
|
||||||
this.cheatEngine.setValue(Cheats.Cheat.LawlessHacks);
|
this.cheatEngine.setValue(Cheats.Cheat.LawlessHacks);
|
||||||
reconfigure(); // Required before anything so that memory is initialized
|
|
||||||
// this.activeCheatEngine = new LawlessHacks(this);
|
// this.activeCheatEngine = new LawlessHacks(this);
|
||||||
// this.activeCheatEngine.attach();
|
// this.activeCheatEngine.attach();
|
||||||
blankTextPage1();
|
blankTextPage1();
|
||||||
reconfigure();
|
reconfigure();
|
||||||
|
Configuration.registerKeyHandlers();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void blankTextPage1() {
|
private void blankTextPage1() {
|
||||||
|
@ -85,6 +85,8 @@ public class LawlessComputer extends Apple2e {
|
||||||
try {
|
try {
|
||||||
performedBootAnimation = true;
|
performedBootAnimation = true;
|
||||||
waitForVBL();
|
waitForVBL();
|
||||||
|
waitForVBL();
|
||||||
|
waitForVBL();
|
||||||
renderWithMask(0x00,0x00,0x00,0x00);
|
renderWithMask(0x00,0x00,0x00,0x00);
|
||||||
renderWithMask(0x08,0x10,0x20,0x40,0x00,0x01,0x02,0x04);
|
renderWithMask(0x08,0x10,0x20,0x40,0x00,0x01,0x02,0x04);
|
||||||
renderWithMask(0x08,0x11,0x22,0x44);
|
renderWithMask(0x08,0x11,0x22,0x44);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user