()
| 295 | } |
| 296 | |
| 297 | export function loadCharacterConfigSync(): CharacterConfig | null { |
| 298 | const col = loadCharacterCollectionSync(); |
| 299 | return col ? getActiveCharacter(col) : null; |
| 300 | } |
| 301 | |
| 302 | export async function saveCharacterConfig(config: CharacterConfig): Promise<void> { |
| 303 | const col = loadCharacterCollectionSync() ?? DEFAULT_COLLECTION; |
nothing calls this directly
no test coverage detected