Update TTS providers and story markup

This commit is contained in:
2026-05-20 22:13:31 +02:00
parent b911c40d89
commit 8258ea2321
36 changed files with 1482 additions and 197 deletions
+7 -1
View File
@@ -120,7 +120,13 @@ async function handleGameApi(socket, method, args) {
const engine = new ink_engine_1.InkEngine(getStoryPath());
sessions.set(socket.id, engine);
socket.emit('narrativeResponse', engine.newGame());
return { success: true, result: true, running: true, canLoad: slots.size > 0 };
return {
success: true,
result: true,
running: true,
canLoad: slots.size > 0,
savedState: engine.saveGame(),
};
}
case 'chooseChoice':
case 'chooseChoice()': {