diff options
author | Le Philousophe | 2019-05-11 12:41:32 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-06-01 22:43:48 +0200 |
commit | 807c4c52477ffb30860a8d7e5a7350a8fc8b5def (patch) | |
tree | f8bf73a5a192b52906c7821e1ee53f1bac04ea5b /engines/cryomni3d | |
parent | 96978b207948502fc2da763627cc1964460498f2 (diff) | |
download | scummvm-rg350-807c4c52477ffb30860a8d7e5a7350a8fc8b5def.tar.gz scummvm-rg350-807c4c52477ffb30860a8d7e5a7350a8fc8b5def.tar.bz2 scummvm-rg350-807c4c52477ffb30860a8d7e5a7350a8fc8b5def.zip |
CRYOMNI3D: Save savegames list offset in settings
Diffstat (limited to 'engines/cryomni3d')
-rw-r--r-- | engines/cryomni3d/versailles/menus.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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; |