From 807c4c52477ffb30860a8d7e5a7350a8fc8b5def Mon Sep 17 00:00:00 2001 From: Le Philousophe Date: Sat, 11 May 2019 12:41:32 +0200 Subject: CRYOMNI3D: Save savegames list offset in settings --- engines/cryomni3d/versailles/menus.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/cryomni3d') diff --git a/engines/cryomni3d/versailles/menus.cpp b/engines/cryomni3d/versailles/menus.cpp index da212eac31..f052cd7165 100644 --- a/engines/cryomni3d/versailles/menus.cpp +++ b/engines/cryomni3d/versailles/menus.cpp @@ -593,7 +593,8 @@ unsigned int CryOmni3DEngine_Versailles::displayFilePicker(const Graphics::Surfa setCursor(181); - unsigned int fileListOffset = 0; // TODO: store in config + unsigned int fileListOffset = CLIP(ConfMan.getInt(_isVisiting ? "visits_list_off" : + "saves_list_off"), 0, 100 - 6); unsigned int boxHovered = -1; unsigned int boxSelected = -1; @@ -796,7 +797,7 @@ unsigned int CryOmni3DEngine_Versailles::displayFilePicker(const Graphics::Surfa } if (boxSelected != -1u) { saveName = savesList[boxSelected + fileListOffset]; - // TODO: save list offset + ConfMan.setInt(_isVisiting ? "visits_list_off" : "saves_list_off", fileListOffset); return boxSelected + fileListOffset + 1; } else { return -1; -- cgit v1.2.3