diff options
| author | JMC47 <JMC4789@gmail.com> | 2024-10-17 12:17:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-17 12:17:47 -0400 |
| commit | 3d7ae07dbf2baef23c8dc3c0a62190207eceefbf (patch) | |
| tree | ab7167e34b34e5ad1806bf7461e50229e4195523 /Source/Core | |
| parent | 1b8cc192200c6e9fdc429c43d0be152ec4dff0d0 (diff) | |
| parent | 3c11360335e9acbc31f63fb8ced8170b2e932362 (diff) | |
Merge pull request #13112 from Tilka/ioslog
IOS: log cIOS device checks as warnings, not errors
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/IOS/IOS.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/Core/Core/IOS/IOS.cpp b/Source/Core/Core/IOS/IOS.cpp index d6a586786a..fbea8dd9d7 100644 --- a/Source/Core/Core/IOS/IOS.cpp +++ b/Source/Core/Core/IOS/IOS.cpp @@ -689,7 +689,13 @@ std::optional<IPCReply> EmulationKernel::OpenDevice(OpenRequest& request) if (!device) { - ERROR_LOG_FMT(IOS, "Unknown device: {}", request.path); + constexpr std::string_view cios_devices[] = {"/dev/flash", "/dev/mload", "/dev/sdio/sdhc", + "/dev/usb123", "/dev/usb2"}; + static_assert(std::ranges::is_sorted(cios_devices)); + if (std::ranges::binary_search(cios_devices, request.path)) + WARN_LOG_FMT(IOS, "Possible anti-piracy check for cIOS device {}", request.path); + else + ERROR_LOG_FMT(IOS, "Unknown device: {}", request.path); return IPCReply{IPC_ENOENT, 3700_tbticks}; } |
