Pārlūkot izejas kodu

final beta17 commit

master
asie pirms 1 mēnesi
vecāks
revīzija
2745fd326d
4 mainītis faili ar 10 papildinājumiem un 6 dzēšanām
  1. 1
    1
      src/zzt.c
  2. 1
    1
      web/src/emulator.js
  3. 5
    0
      web/src/index.js
  4. 3
    4
      zeta_wasm.sh

+ 1
- 1
src/zzt.c Parādīt failu

@@ -72,7 +72,7 @@ typedef struct {
double timer_time;

// video
u8 chr_width, chr_height;
int chr_width, chr_height;

// keyboard
int key_delay, key_repeat_delay;

+ 1
- 1
web/src/emulator.js Parādīt failu

@@ -174,7 +174,7 @@ class Emulator {
const width = 8;
const height = charset.length >> 8;

if (height != 14) return false;
if (height <= 0 || height > 16) return false;

let result = false;


+ 5
- 0
web/src/index.js Parādīt failu

@@ -159,6 +159,11 @@ window.ZetaInitialize = function(options, callback) {
return true;
}
}).then(_ => {
// clear canvas
ctx.fillStyle = "#000000";
ctx.fillRect(0, 0, canvas.width, canvas.height);

// init emulator
let render_type = (options && options.render && options.render.type) || "auto";
let audio_type = (options && options.audio && options.audio.type) || "auto";


+ 3
- 4
zeta_wasm.sh Parādīt failu

@@ -20,12 +20,11 @@ emcc -O3 --js-library src/emscripten_glue.js \
-s 'MALLOC="emmalloc"' -s NO_FILESYSTEM=1 \
-s TOTAL_MEMORY=4194304 -s TOTAL_STACK=262144 \
-s DEFAULT_LIBRARY_FUNCS_TO_INCLUDE="[]" \
-DNO_MEMSET \
-DNO_MEMSET -o zeta_native.js \
src/cpu.c src/zzt.c res/8x14.c src/audio_stream.c

mv a.out.js build/zeta_native.js
mv a.out.wasm build/zeta_native.wasm
sed -i -e "s/a\.out/zeta_native/g" build/zeta_native.js
mv zeta_native.js build/zeta_native.js
mv zeta_native.wasm build/zeta_native.wasm

cp build/zeta_native.js build/web/
cp build/zeta_native.wasm build/web/

Notiek ielāde…
Atcelt
Saglabāt