PLUGINS: Move platform specific code out of the generic ELF loader.

Instead overwrite pure virtual functions in a backend specific class.

svn-id: r52556
This commit is contained in:
Andre Heider 2010-09-05 12:52:17 +00:00
parent 86f4dbd956
commit c4a88559a5
16 changed files with 363 additions and 106 deletions

View file

@ -321,10 +321,6 @@ bool MIPSDLObject::loadSegment(Common::SeekableReadStream* DLFile, Elf32_Phdr *p
// Unload all objects from memory
void MIPSDLObject::unload() {
discard_symtab();
free(_segment);
_segment = 0;
if (_shortsSegment) {
ShortsMan.deleteSegment(_shortsSegment);
_shortsSegment = 0;