484 B
484 B
Grim.js — startLoop() (satır 361)
function startLoop(c, force) {
var s = loadState();
if (!force && s.active && s.runId && Number(mappet.get(RUN_KEY)) === Number(s.runId)) return;
var runId = nowMs();
s.active = true;
s.runId = runId;
saveState(s);
mappet.set(RUN_KEY, runId);
c.setValue("skin_run_id", runId);
c.scheduleScript("skinLoop", 1);
}