COMMON: Remove hasDataFork and getDataFork
This commit is contained in:
parent
ae9de1acbc
commit
382913b51d
2 changed files with 0 additions and 34 deletions
|
@ -135,10 +135,6 @@ void MacResManager::close() {
|
|||
_resMap.numTypes = 0;
|
||||
}
|
||||
|
||||
bool MacResManager::hasDataFork() const {
|
||||
return !_baseFileName.empty();
|
||||
}
|
||||
|
||||
bool MacResManager::hasResFork() const {
|
||||
return !_baseFileName.empty() && _mode != kResForkNone && _resForkSize != 0;
|
||||
}
|
||||
|
@ -685,24 +681,6 @@ bool MacResManager::load(SeekableReadStream *stream) {
|
|||
return true;
|
||||
}
|
||||
|
||||
SeekableReadStream *MacResManager::getDataFork() {
|
||||
if (!_stream)
|
||||
return nullptr;
|
||||
|
||||
if (_mode == kResForkMacBinary) {
|
||||
_stream->seek(MBI_DFLEN);
|
||||
uint32 dataSize = _stream->readUint32BE();
|
||||
return new SafeSeekableSubReadStream(_stream, MBI_INFOHDR, MBI_INFOHDR + dataSize);
|
||||
}
|
||||
|
||||
File *file = new File();
|
||||
if (file->open(_baseFileName))
|
||||
return file;
|
||||
delete file;
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
MacResIDArray MacResManager::getResIDArray(uint32 typeID) {
|
||||
int typeNum = -1;
|
||||
MacResIDArray res;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue