MCPcopy Create free account
hub / github.com/MiniMax-AI/OpenRoom / saveModState

Function saveModState

apps/webuiapps/src/lib/modManager.ts:350–355  ·  view source on GitHub ↗
(state: ModState)

Source from the content-addressed store, hash-verified

348}
349
350export async function saveModState(state: ModState): Promise<void> {
351 const col = loadModCollectionSync() ?? DEFAULT_MOD_COLLECTION;
352 const entry = getActiveModEntry(col);
353 const updated = updateModEntry(col, { ...entry, state });
354 await saveModCollection(updated);
355}
356
357// ---------------------------------------------------------------------------
358// Mod Manager (runtime logic)

Callers

nothing calls this directly

Calls 4

loadModCollectionSyncFunction · 0.85
getActiveModEntryFunction · 0.85
updateModEntryFunction · 0.85
saveModCollectionFunction · 0.85

Tested by

no test coverage detected