open-goal / speedrunning

Various speedrunning related tools, scripts or assets
ISC License
2 stars 4 forks source link

Consider switching to WASM modules #11

Open xTVaser opened 1 year ago

xTVaser commented 1 year ago

Livesplit seems to have a newer way of providing simple autosplitting scripts and I think this is to make them more cross-platform. https://github.com/LiveSplit/livesplit-core/tree/master/crates/livesplit-auto-splitting / https://github.com/LiveSplit/asr

I'm not sure if these can be auto distributed via the XML file though

I think the answer is yes as there are a few .wasm files https://github.com/LiveSplit/LiveSplit.AutoSplitters/blob/master/LiveSplit.AutoSplitters.xml#L336

In terms of features there doesn't seem to be much more, it's still just basically boolean settings.

xTVaser commented 1 year ago

Another good reason to switch is that it'd be much faster/consistent to read an exported symbol from gk.

This isn't something that is supported by ASL. It's also not currently supported by ASR but it's more likely to be easier to contribute https://livesplit.org/asr/asr/struct.Process.html

At the worst, it allows us to explicitly iterate the memory ranges which the flags can be queried on https://livesplit.org/asr/asr/struct.MemoryRange.html