Fix bug where movies starting from sram would crash.
This commit is contained in:
parent
490c7e917c
commit
35ddbb341d
|
@ -604,8 +604,8 @@ static void openRecordingMovie(const char* fname)
|
||||||
|
|
||||||
bool MovieData::loadSramFrom(std::vector<u8>* buf)
|
bool MovieData::loadSramFrom(std::vector<u8>* buf)
|
||||||
{
|
{
|
||||||
EMUFILE_MEMORY ms(buf);
|
EMUFILE_MEMORY* ms = new EMUFILE_MEMORY(buf); // change to new to avoid automatic destruction
|
||||||
MMU_new.backupDevice.load_movie(ms);
|
MMU_new.backupDevice.load_movie(*ms);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue