Load movie SRAM as movie SRAM, not save SRAM

This fixes start from SRAM, and also movieinfo.
This commit is contained in:
Ilari Liusvaara 2011-09-19 23:08:57 +03:00
parent 94770e0beb
commit 16f94f9cef

View file

@ -261,7 +261,7 @@ moviefile::moviefile(const std::string& movie) throw(std::bad_alloc, std::runtim
std::string name = r.find_first();
for(auto name = r.begin(); name != r.end(); ++name)
if((*name).length() >= 10 && (*name).substr(0, 10) == "moviesram.")
sram[(*name).substr(10)] = read_raw_file(r, *name);
movie_sram[(*name).substr(10)] = read_raw_file(r, *name);
read_authors_file(r, authors);
read_input(r, input, port1, port2, 0);
}