summaryrefslogtreecommitdiff
path: root/packages/frontend/src/scripts/libopenmpt/readme.md
blob: 4b99a6c40f6fac812b7add5bfb3184e59d6c731c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
modifications made to `libopenmpt.js` (can be taken from https://lib.openmpt.org/libopenmpt/download/):

at the beginning of the file:
```js
// @ts-nocheck
/* eslint-disable */
```

at the end of the file:
```js
Module.UTF8ToString = UTF8ToString;
Module.writeAsciiToMemory = writeAsciiToMemory;
export { Module }
```

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