From 4b25b2c5ebf869afa792950556248052672f8a66 Mon Sep 17 00:00:00 2001 From: ITotalJustice <47043333+ITotalJustice@users.noreply.github.com> Date: Mon, 26 May 2025 23:18:14 +0100 Subject: [PATCH] use usb mount flags to detect if its read only, rather than checking global config. --- sphaira/source/location.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sphaira/source/location.cpp b/sphaira/source/location.cpp index ec24ce1..a08c3e0 100644 --- a/sphaira/source/location.cpp +++ b/sphaira/source/location.cpp @@ -86,12 +86,11 @@ auto GetStdio(bool write) -> StdioEntries { log_write("[USBHSFS] got count: %u\n", count); StdioEntries out{}; - const auto write_protect = App::GetWriteProtect(); for (s32 i = 0; i < count; i++) { const auto& e = devices[i]; - if (write && (write_protect || e.write_protect)) { + if (write && (e.write_protect || (e.flags & UsbHsFsMountFlags_ReadOnly))) { log_write("[USBHSFS] skipping write protect\n"); continue; }