hippofish/packages/frontend/src/scripts/libopenmpt
2024-03-14 21:39:34 +03:00
..
libopenmpt.js fix: load libopenmpt on demand 2024-03-11 15:32:59 +03:00
libopenmpt.wasm fix: load libopenmpt on demand 2024-03-11 15:32:59 +03:00
LICENSE chore: added license and patch info 2024-03-14 21:39:34 +03:00
readme.md chore: added license and patch info 2024-03-14 21:39:34 +03:00

modifications made to libopenmpt.js (can be taken from https://lib.openmpt.org/libopenmpt/download/):

at the beginning of the file:

// @ts-nocheck
/* eslint-disable */

at the end of the file:

Module.UTF8ToString = UTF8ToString;
Module.writeAsciiToMemory = writeAsciiToMemory;
export { Module }

replace

wasmBinaryFile="libopenmpt.wasm"

with

wasmBinaryFile=new URL("./libopenmpt.wasm", import.meta.url).href