Roves
roves-api

cache

clearContentCache() — wipe the packed-content extraction cache.

Edit on GitHub
import { clearContentCache } from "@drincs/roves-api/cache";

await clearContentCache();

Closes the game after resetting cached local game files — never save data.

  • Roves player: there is no extraction cache to clear, because the player serves your game's files straight from its game/ folder and revalidates every file on each launch. The call keeps its contract and closes the game.
  • Previous Servo-based Shell: deletes the startup extraction cache and closes the game, since that cache is the live document root while running. The next launch re-extracts fresh from the shipped bundle.

No resume-in-place

There is currently no way to clear the cache and keep playing, or to have the game relaunch itself afterwards — the player (or your own launcher, if you have one) starts it again.

Use this for a "repair install"/"reset local files" button — much simpler than trying to reconcile a running page against files being rewritten out from under it.