mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00:00
GeckoCode: Cleanup
The active codes vector cannot safely be used outside the mutex, move the lock out into RunCodeHandler. s_code_handler_installed was also racing against SetActiveCodes since it's being written both inside and outside the lock. General cleanup. Add s_ prefixes, use constexpr, remove C casts.
This commit is contained in:
parent
cf8ac5c09c
commit
e91c0222b4
2 changed files with 61 additions and 70 deletions
|
@ -34,7 +34,6 @@ public:
|
|||
};
|
||||
|
||||
void SetActiveCodes(const std::vector<GeckoCode>& gcodes);
|
||||
bool RunActiveCodes();
|
||||
void RunCodeHandler();
|
||||
|
||||
} // namespace Gecko
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue