mirror of
https://codeberg.org/demostf/tf-demos-viewer.git
synced 2026-06-03 18:14:11 +02:00
forgot to commit this for 7 months...
This commit is contained in:
parent
ff75c2ca48
commit
6d568799a7
11 changed files with 77 additions and 31 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import {FlatState, XY} from '../pkg/index';
|
||||
import {FlatState, XY} from '@demostf/tf-demos-viewer';
|
||||
|
||||
export async function parseDemo(bytes: Uint8Array, progressCallback : (progress: number) => void): Promise<ParsedDemo> {
|
||||
let m = await import("../pkg/index.js");
|
||||
let m = await import("@demostf/tf-demos-viewer");
|
||||
const state = m.parse_demo(bytes, progressCallback);
|
||||
|
||||
let playerCount = state.player_count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue