ActionReplay: UI Consistency and Cleanup
Cleanup code style. Move ActionReplay code->INI saving into ActionReplay namespace. Threadsafety Cleanup: ActionReplay is accessed from the Host, Emu and CPU Threads so the internal storage needs to be protected by a lock to prevent vectors/strings being deleted/moved while in use by the CPU Thread. UI Consistency: Make ARCodes behave like Gecko Codes - only apply changes when Apply is pressed. Save changes to INI from CheatsWindow. ISOProperties/CheatsWindow now synchronize with each other.
This commit is contained in:
@@ -331,10 +331,11 @@ enum
|
||||
|
||||
// custom message macro
|
||||
#define EVT_HOST_COMMAND(id, fn) \
|
||||
DECLARE_EVENT_TABLE_ENTRY(\
|
||||
wxEVT_HOST_COMMAND, id, wxID_ANY, \
|
||||
(wxObjectEventFunction)(wxEventFunction) wxStaticCastEvent(wxCommandEventFunction, &fn), \
|
||||
(wxObject*) nullptr \
|
||||
),
|
||||
EVT_COMMAND(id, wxEVT_HOST_COMMAND, fn)
|
||||
|
||||
wxDECLARE_EVENT(wxEVT_HOST_COMMAND, wxCommandEvent);
|
||||
|
||||
// Sent to wxTheApp
|
||||
// GetString() == Game's Unique ID
|
||||
// GetInt() == Game's Revision
|
||||
wxDECLARE_EVENT(DOLPHIN_EVT_LOCAL_INI_CHANGED, wxCommandEvent);
|
||||
|
||||
Reference in New Issue
Block a user