| 82 | } |
| 83 | |
| 84 | result Openmpt::loadMem(unsigned char *aMem, unsigned int aLength, bool aCopy, bool aTakeOwnership) |
| 85 | { |
| 86 | MemoryFile mf; |
| 87 | int res = mf.openMem(aMem, aLength, aCopy, aTakeOwnership); |
| 88 | if (res != SO_NO_ERROR) |
| 89 | return res; |
| 90 | return loadFile(&mf); |
| 91 | } |
| 92 | |
| 93 | result Openmpt::load(const char *aFilename) |
| 94 | { |