Qwokka / Cetus

Browser extension for hacking WebAssembly games a la Cheat Engine
Apache License 2.0
530 stars 45 forks source link

Separate Speedhack Between Tabs #62

Open Qwokka opened 1 year ago

Qwokka commented 1 year ago

As mentioned in #50, Cetus now has support for multiple concurrent WASM binaries. We should also support selectively configuring the speedhack.

Qwokka commented 1 year ago

The more I think about this, the more I realize that separating the speedhack by WASM binary may not be ideal for a couple reasons.

For one thing, I can't think of a reliable way to determine which WASM binary initated a call to Date.now().

Secondly, having the speedhack only affect WASM binaries (Instead of the whole page) might make the speedhack less useful for users.

Overall it seems like a lot of added complexity just to support a single edge-case (Multiple WASM binaries in one page, but we only want to speedhack one of them).

With all that in mind, I think the better way to go about this is to allow to speedhack to be toggled on a per page basis, not a per binary basis.