diff options
Diffstat (limited to 'scumm/cursor.cpp')
-rw-r--r-- | scumm/cursor.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scumm/cursor.cpp b/scumm/cursor.cpp index 9894a09ee0..2fb0a0c514 100644 --- a/scumm/cursor.cpp +++ b/scumm/cursor.cpp @@ -26,6 +26,7 @@ #include "scumm/intern.h" #include "scumm/object.h" #include "scumm/resource_v7he.h" +#include "scumm/saveload.h" #include "scumm/scumm.h" @@ -395,4 +396,14 @@ void ScummEngine_v5::setBuiltinCursor(int idx) { updateCursor(); } +void ScummEngine_v5::saveOrLoadCursorImages(Serializer *s) { + const SaveLoadEntry cursorEntries[] = { + MKARRAY2(ScummEngine_v5, _cursorImages[0][0], sleUint16, 16, 4, (byte*)_cursorImages[1] - (byte*)_cursorImages[0], VER(44)), + MKARRAY(ScummEngine_v5, _cursorHotspots[0], sleByte, 8, VER(44)), + MKEND() + }; + + s->saveLoadEntries(this, cursorEntries); +} + } // End of namespace Scumm |