mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
VOYEUR: Simplify getBoltGroup() by removing the second (useless) parameter
This commit is contained in:
parent
834cd6cc50
commit
6db1e8ae46
@ -239,7 +239,7 @@ BoltFile::~BoltFile() {
|
||||
_state._curLibPtr = NULL;
|
||||
}
|
||||
|
||||
BoltGroup *BoltFile::getBoltGroup(uint16 id, bool process) {
|
||||
BoltGroup *BoltFile::getBoltGroup(uint16 id) {
|
||||
_state._curLibPtr = this;
|
||||
_state._curGroupPtr = &_groups[(id >> 8) & 0xff];
|
||||
|
||||
@ -248,16 +248,11 @@ BoltGroup *BoltFile::getBoltGroup(uint16 id, bool process) {
|
||||
_state._curGroupPtr->load(id & 0xff00);
|
||||
}
|
||||
|
||||
if (process) {
|
||||
// Pre-process the resources
|
||||
id &= 0xff00;
|
||||
for (int idx = 0; idx < _state._curGroupPtr->_count; ++idx, ++id) {
|
||||
byte *member = getBoltMember(id);
|
||||
assert(member);
|
||||
}
|
||||
} else if (!_state._curGroupPtr->_processed) {
|
||||
_state._curGroupPtr->_processed = true;
|
||||
_state._curGroupPtr->load(id & 0xff00);
|
||||
// Pre-process the resources
|
||||
id &= 0xff00;
|
||||
for (int idx = 0; idx < _state._curGroupPtr->_count; ++idx, ++id) {
|
||||
byte *member = getBoltMember(id);
|
||||
assert(member);
|
||||
}
|
||||
|
||||
resolveAll();
|
||||
|
@ -106,7 +106,7 @@ public:
|
||||
BoltFile(const Common::String &filename, BoltFilesState &state);
|
||||
virtual ~BoltFile();
|
||||
|
||||
BoltGroup *getBoltGroup(uint16 id, bool process = true);
|
||||
BoltGroup *getBoltGroup(uint16 id);
|
||||
void freeBoltGroup(uint16 id, bool freeEntries = true);
|
||||
void freeBoltMember(uint32 id);
|
||||
byte *memberAddr(uint32 id);
|
||||
|
Loading…
Reference in New Issue
Block a user