From f54eb0b9890062e5757297b7a3a013df23ae79d7 Mon Sep 17 00:00:00 2001 From: Can Date: Sun, 12 Jan 2025 13:57:11 +0100 Subject: feat: got renderer working with cpu --- src/main.effekt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/main.effekt') diff --git a/src/main.effekt b/src/main.effekt index 446f2ed..627ae8e 100644 --- a/src/main.effekt +++ b/src/main.effekt @@ -8,11 +8,9 @@ import bytearray def main(): Unit = { // Using the JS backend def r = JSRenderer::makeRenderer - try { - r.init() - } with start { rom => - log("ROM loaded to the functionnn!") - resume(()) + def test(rom: ByteArray) = { + cpu::run(rom) {r} } + r.init(test) () } \ No newline at end of file -- cgit v1.2.3