IOS/NCD: Implement Lock/Unlock more accurately

NCD returns an error if it receives a request to lock the driver
when it is already locked.

Emulating this may seem pointless, but it turns out PPC-side code
expects NCD to return an error and will immediately fail and stop
initialising wireless stuff if NCD succeeds.
This commit is contained in:
Léo Lam
2020-11-29 00:58:33 +01:00
parent 3f68aceaca
commit 4fea832f49
3 changed files with 51 additions and 2 deletions

View File

@ -74,7 +74,7 @@ static Common::Event g_compressAndDumpStateSyncEvent;
static std::thread g_save_thread;
// Don't forget to increase this after doing changes on the savestate system
constexpr u32 STATE_VERSION = 126; // Last changed in PR 9348
constexpr u32 STATE_VERSION = 127; // Last changed in PR 9300 (temp)
// Maps savestate versions to Dolphin versions.
// Versions after 42 don't need to be added to this list,