Skip to content

Commit

Permalink
Zeta 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
asiekierka committed Jun 14, 2023
1 parent cf7c092 commit ac5a44a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions web/res/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ The entrypoint is "ZetaLoad(options, callback);". The callback is optional, and
* lock_palette: if true and a custom palette is provided, the palette cannot be changed by the emulated engine,
* memory_limit: the memory limit, in kilobytes (64-640)
* extended_memory_limit: the extended (EMS) memory limit, in kilobytes
* skip_kc: if true, press "K, C, ENTER" on start
* render:
* type: the engine to use for video rendering; can be "auto" (preferred) or "canvas"
* blink_cycle_duration: the length of a full blink cycle, in seconds; <= 0 to disable; the default is 0.466
Expand Down
12 changes: 12 additions & 0 deletions web/src/emulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,18 @@ export function createEmulator(render, audio, vfs, options) {

emuObj._resetLastTimerTime();
emuObj._tick();

if (options && options.engine) {
if (options.engine.skip_kc) {
emu._zzt_key(107, 0x25); // 'k'
emu._zzt_keyup(0x25);
emu._zzt_key(99, 0x2E); // 'c'
emu._zzt_keyup(0x2E);
emu._zzt_key(13, 0x1C); // '\r'
emu._zzt_keyup(0x1C);
}
}

resolve(emuObj);
});
});
Expand Down

0 comments on commit ac5a44a

Please sign in to comment.