(state: ModState)
| 348 | } |
| 349 | |
| 350 | export 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) |
nothing calls this directly
no test coverage detected