mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-19 05:15:46 -04:00
CheatList: Add merge list function for importing
This commit is contained in:
@ -558,10 +558,7 @@ void CheatManagerDialog::importClicked()
|
||||
QtHostInterface::GetInstance()->executeOnEmulationThread(
|
||||
[&new_cheats]() {
|
||||
DebugAssert(System::HasCheatList());
|
||||
CheatList* list = System::GetCheatList();
|
||||
for (u32 i = 0; i < new_cheats.GetCodeCount(); i++)
|
||||
list->AddCode(new_cheats.GetCode(i));
|
||||
|
||||
System::GetCheatList()->MergeList(new_cheats);
|
||||
QtHostInterface::GetInstance()->SaveCheatList();
|
||||
},
|
||||
true);
|
||||
|
Reference in New Issue
Block a user