mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 01:05:59 +00:00
TITANIC: Hide any active PET text cursor when loading a savegame
This commit is contained in:
parent
0e3bd1d679
commit
96c36d5398
@ -309,6 +309,10 @@ void CProjectItem::saveData(SimpleFile *file, CTreeItem *item) const {
|
||||
void CProjectItem::preLoad() {
|
||||
if (_gameManager)
|
||||
_gameManager->preLoad();
|
||||
|
||||
CScreenManager *scrManager = CScreenManager::_currentScreenManagerPtr;
|
||||
if (scrManager)
|
||||
scrManager->preLoad();
|
||||
}
|
||||
|
||||
void CProjectItem::postLoad() {
|
||||
|
@ -73,6 +73,11 @@ int CScreenManager::setFontNumber(int fontNumber) {
|
||||
return oldFontNumber;
|
||||
}
|
||||
|
||||
void CScreenManager::preLoad() {
|
||||
if (_textCursor)
|
||||
_textCursor->hide();
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------*/
|
||||
|
||||
OSScreenManager::OSScreenManager(TitanicEngine *vm): CScreenManager(vm),
|
||||
|
@ -228,6 +228,11 @@ public:
|
||||
* Set the current font number
|
||||
*/
|
||||
int setFontNumber(int fontNumber);
|
||||
|
||||
/**
|
||||
* Called when a game is about to be loaded
|
||||
*/
|
||||
void preLoad();
|
||||
};
|
||||
|
||||
class OSScreenManager: CScreenManager {
|
||||
|
Loading…
x
Reference in New Issue
Block a user