From 45b59f01b8406216b4e1ee06397184aafd9de6cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 8 Jan 2017 20:54:13 +0100 Subject: [PATCH] IOS HLE: Allow up to 3 ES handles Confirmed by a hardware test and a quick diassembly of /dev/es. I'm not aware of anything that opens several ES handles, but technically, this fixes a small inaccuracy in IOS HLE. --- Source/Core/Core/IPC_HLE/WII_IPC_HLE.cpp | 2 +- Source/Core/Core/State.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/IPC_HLE/WII_IPC_HLE.cpp b/Source/Core/Core/IPC_HLE/WII_IPC_HLE.cpp index cb3e43fc51..3a40dfd28f 100644 --- a/Source/Core/Core/IPC_HLE/WII_IPC_HLE.cpp +++ b/Source/Core/Core/IPC_HLE/WII_IPC_HLE.cpp @@ -65,7 +65,7 @@ static std::mutex s_device_map_mutex; // STATE_TO_SAVE constexpr u8 IPC_MAX_FDS = 0x18; -constexpr u8 ES_MAX_COUNT = 2; +constexpr u8 ES_MAX_COUNT = 3; static std::shared_ptr s_fdmap[IPC_MAX_FDS]; static std::shared_ptr s_es_handles[ES_MAX_COUNT]; diff --git a/Source/Core/Core/State.cpp b/Source/Core/Core/State.cpp index 3d4a9b3744..36be7c6447 100644 --- a/Source/Core/Core/State.cpp +++ b/Source/Core/Core/State.cpp @@ -71,7 +71,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 -static const u32 STATE_VERSION = 66; // Last changed in PR 4607 +static const u32 STATE_VERSION = 67; // Last changed in PR 4634 // Maps savestate versions to Dolphin versions. // Versions after 42 don't need to be added to this list,