OpenWebGAL / WebGAL

A brand new web Visual Novel engine | 全新的网页端视觉小说引擎

Home Page:https://openwebgal.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

存读档存储过程优化

MakinoharaShoko opened this issue · comments

不再以单一键在 IndexedDB 中存储全部的存档,而是每一个存储对应一个键分别存储。
本次优化不涉及自动存档的相关逻辑。
优化的计划实施方案是:拆解存档文件后,仍旧保留原来的 syncStorage 方案,通过将存档文件同步到 redux 的状态中实现。添加 API:syncGameLoadStorage(startIndex, endIndex),只对指定的存档数据范围,同步到 redux 的状态中。
对于存档,只更新指定 index 的 IndexedDB 键。