mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-22 01:39:57 +00:00
FULLPIPE: Fix MemoryObject loading
This commit is contained in:
parent
88b3e27440
commit
305692fefe
@ -129,14 +129,12 @@ bool MemoryObject::load(MfcArchive &file) {
|
||||
|
||||
void MemoryObject::loadFile(char *filename) {
|
||||
if (!_data) {
|
||||
if (g_fullpipe->_currArchive != _libHandle) {
|
||||
assert(0);
|
||||
}
|
||||
|
||||
Common::SeekableReadStream *s = _libHandle->createReadStreamForMember(filename);
|
||||
Common::SeekableReadStream *s = g_fullpipe->_currArchive->createReadStreamForMember(filename);
|
||||
|
||||
if (s) {
|
||||
assert(s->size() > 0);
|
||||
|
||||
debug(0, "Loading %s", filename);
|
||||
_data = calloc(s->size(), 1);
|
||||
s->read(_data, s->size());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user