Fix loading memory watches on project change
This commit is contained in:
parent
efa7a3bb4e
commit
3ab62196fd
1 changed files with 5 additions and 1 deletions
|
@ -372,7 +372,11 @@ bool project_set(project_info* p, bool current)
|
|||
skip_rom_movie:
|
||||
active_project = p;
|
||||
switched = true;
|
||||
for(auto i : lsnes_memorywatch.enumerate())
|
||||
//Calculate union of old and new.
|
||||
std::set<std::string> _watches = lsnes_memorywatch.enumerate();
|
||||
for(auto i : p->watches) _watches.insert(i.first);
|
||||
|
||||
for(auto i : _watches)
|
||||
try {
|
||||
if(p->watches.count(i))
|
||||
lsnes_memorywatch.set(i, p->watches[i]);
|
||||
|
|
Loading…
Add table
Reference in a new issue