mirror of
https://github.com/exoticorn/microw8.git
synced 2026-01-20 11:16:42 +01:00
fix isButtonTriggered in web runtime, release v0.1pre4
This commit is contained in:
@@ -117,7 +117,7 @@ async function runModule(data) {
|
||||
return data;
|
||||
}
|
||||
|
||||
let instantiate = async (data) => new WebAssembly.Instance(await WebAssembly.compile(data), importObject);
|
||||
let instantiate = async (data) => (await WebAssembly.instantiate(data, importObject)).instance;
|
||||
|
||||
let loadModuleURL = async (url) => instantiate(loadModuleData(await (await fetch(url)).arrayBuffer()));
|
||||
|
||||
@@ -194,6 +194,7 @@ async function runModule(data) {
|
||||
u32Mem[16] = now - startTime;
|
||||
u32Mem[17] = pad | gamepad;
|
||||
instance.exports.upd();
|
||||
platform_instance.exports.endFrame();
|
||||
|
||||
let palette = U32(memory.buffer.slice(0x13000, 0x13000 + 1024));
|
||||
for (let i = 0; i < 320 * 240; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user