mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-21 09:21:08 +00:00
WINTERMUTE: Transfer Point32s explicitly when saving/loading.
This commit is contained in:
parent
95d2ed1a9b
commit
538c5935f9
@ -255,7 +255,7 @@ bool AdSentence::persist(BasePersistenceManager *persistMgr) {
|
||||
persistMgr->transfer(TMEMBER(_currentSkelAnim));
|
||||
persistMgr->transfer(TMEMBER(_duration));
|
||||
persistMgr->transferPtr(TMEMBER_PTR(_font));
|
||||
persistMgr->transfer(TMEMBER(_pos));
|
||||
persistMgr->transferPoint32(TMEMBER(_pos));
|
||||
persistMgr->transferPtr(TMEMBER_PTR(_sound));
|
||||
persistMgr->transferBool(TMEMBER(_soundStarted));
|
||||
persistMgr->transfer(TMEMBER(_stances));
|
||||
|
@ -813,7 +813,7 @@ bool BasePersistenceManager::transferRect32(const char *name, Rect32 *val) {
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// POINT
|
||||
bool BasePersistenceManager::transfer(const char *name, Point32 *val) {
|
||||
bool BasePersistenceManager::transferPoint32(const char *name, Point32 *val) {
|
||||
if (_saving) {
|
||||
_saveStream->writeSint32LE(val->x);
|
||||
_saveStream->writeSint32LE(val->y);
|
||||
|
@ -81,7 +81,7 @@ public:
|
||||
bool transferBool(const char *name, bool *val);
|
||||
bool transferByte(const char *name, byte *val);
|
||||
bool transferRect32(const char *name, Rect32 *val);
|
||||
bool transfer(const char *name, Point32 *val);
|
||||
bool transferPoint32(const char *name, Point32 *val);
|
||||
bool transfer(const char *name, const char **val);
|
||||
bool transfer(const char *name, char **val);
|
||||
bool transfer(const char *name, Common::String *val);
|
||||
|
@ -1259,7 +1259,7 @@ bool UIWindow::persist(BasePersistenceManager *persistMgr) {
|
||||
|
||||
persistMgr->transferPtr(TMEMBER_PTR(_backInactive));
|
||||
persistMgr->transferBool(TMEMBER(_clipContents));
|
||||
persistMgr->transfer(TMEMBER(_dragFrom));
|
||||
persistMgr->transferPoint32(TMEMBER(_dragFrom));
|
||||
persistMgr->transferBool(TMEMBER(_dragging));
|
||||
persistMgr->transferRect32(TMEMBER(_dragRect));
|
||||
persistMgr->transferBool(TMEMBER(_fadeBackground));
|
||||
|
Loading…
Reference in New Issue
Block a user