diff options
author | Einar Johan Trøan Sømåen | 2012-07-29 21:35:11 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-29 21:37:24 +0200 |
commit | 85ce9340bcb425a6c5e8dbcacff5a7fa2fb4c817 (patch) | |
tree | d78a7c5377ef446e87dac092f9d29377c27cc7ff /engines/wintermute/system/sys_class_registry.cpp | |
parent | 80a67a70cdaad254185ffd9b2042a710e4a6e338 (diff) | |
download | scummvm-rg350-85ce9340bcb425a6c5e8dbcacff5a7fa2fb4c817.tar.gz scummvm-rg350-85ce9340bcb425a6c5e8dbcacff5a7fa2fb4c817.tar.bz2 scummvm-rg350-85ce9340bcb425a6c5e8dbcacff5a7fa2fb4c817.zip |
WINTERMUTE: Separate out SaveGame-code from BaseGame
Diffstat (limited to 'engines/wintermute/system/sys_class_registry.cpp')
-rw-r--r-- | engines/wintermute/system/sys_class_registry.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/wintermute/system/sys_class_registry.cpp b/engines/wintermute/system/sys_class_registry.cpp index 09e43529e3..e991fb3f07 100644 --- a/engines/wintermute/system/sys_class_registry.cpp +++ b/engines/wintermute/system/sys_class_registry.cpp @@ -200,7 +200,7 @@ bool SystemClassRegistry::saveTable(BaseGame *gameRef, BasePersistenceManager *p counter++;
if (!quickSave) {
- gameRef->_indicatorProgress = (int)(50.0f / (float)((float)_classes.size() / (float)counter));
+ gameRef->_renderer->setIndicatorVal((int)(50.0f / (float)((float)_classes.size() / (float)counter)));
gameRef->displayContent(false);
gameRef->_renderer->flip();
}
@@ -234,7 +234,7 @@ bool SystemClassRegistry::loadTable(BaseGame *gameRef, BasePersistenceManager *p uint32 numClasses = persistMgr->getDWORD();
for (uint32 i = 0; i < numClasses; i++) {
- gameRef->_indicatorProgress = (int)(50.0f / (float)((float)numClasses / (float)i));
+ gameRef->_renderer->setIndicatorVal((int)(50.0f / (float)((float)numClasses / (float)i)));
gameRef->displayContentSimple();
gameRef->_renderer->flip();
@@ -270,7 +270,7 @@ bool SystemClassRegistry::saveInstances(BaseGame *gameRef, BasePersistenceManage if (!quickSave) {
if (counter % 20 == 0) {
- gameRef->_indicatorProgress = (int)(50.0f + 50.0f / (float)((float)_classes.size() / (float)counter));
+ gameRef->_renderer->setIndicatorVal((int)(50.0f + 50.0f / (float)((float)_classes.size() / (float)counter)));
gameRef->displayContent(false);
gameRef->_renderer->flip();
}
@@ -290,7 +290,7 @@ bool SystemClassRegistry::loadInstances(BaseGame *gameRef, BasePersistenceManage for (int i = 0; i < numInstances; i++) {
if (i % 20 == 0) {
- gameRef->_indicatorProgress = (int)(50.0f + 50.0f / (float)((float)numInstances / (float)i));
+ gameRef->_renderer->setIndicatorVal((int)(50.0f + 50.0f / (float)((float)numInstances / (float)i)));
gameRef->displayContentSimple();
gameRef->_renderer->flip();
}
|