mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-15 08:39:45 +00:00
ULTIMA8: Display pentagram cursor during load/save
This commit is contained in:
parent
4496f1ad92
commit
e6fa61f0e2
@ -994,6 +994,12 @@ Common::Error Ultima8Engine::saveGameStream(Common::WriteStream *stream, bool is
|
||||
if (gump)
|
||||
gump->OnMouseLeft();
|
||||
|
||||
_mouse->pushMouseCursor();
|
||||
_mouse->setMouseCursor(Mouse::MOUSE_PENTAGRAM);
|
||||
_screen->BeginPainting();
|
||||
_mouse->paint();
|
||||
_screen->EndPainting();
|
||||
|
||||
_saveCount++;
|
||||
|
||||
SavegameWriter *sgw = new SavegameWriter(stream);
|
||||
@ -1054,6 +1060,8 @@ Common::Error Ultima8Engine::saveGameStream(Common::WriteStream *stream, bool is
|
||||
|
||||
pout << "Done" << Std::endl;
|
||||
|
||||
_mouse->popMouseCursor();
|
||||
|
||||
return Common::kNoError;
|
||||
}
|
||||
|
||||
@ -1205,6 +1213,12 @@ Common::Error Ultima8Engine::loadGameStream(Common::SeekableReadStream *stream)
|
||||
return Common::kReadingFailed;
|
||||
}
|
||||
|
||||
_mouse->pushMouseCursor();
|
||||
_mouse->setMouseCursor(Mouse::MOUSE_PENTAGRAM);
|
||||
_screen->BeginPainting();
|
||||
_mouse->paint();
|
||||
_screen->EndPainting();
|
||||
|
||||
IDataSource *ds;
|
||||
GameInfo saveinfo;
|
||||
ds = sg->getDataSource("GAME");
|
||||
@ -1314,6 +1328,10 @@ Common::Error Ultima8Engine::loadGameStream(Common::SeekableReadStream *stream)
|
||||
if (!ok) message += "MAPS: failed\n";
|
||||
delete ds;
|
||||
|
||||
// Reset mouse cursor
|
||||
_mouse->popAllCursors();
|
||||
_mouse->pushMouseCursor();
|
||||
|
||||
if (!totalok) {
|
||||
Error(message, "Error Loading savegame", true);
|
||||
delete sg;
|
||||
|
Loading…
x
Reference in New Issue
Block a user