use usb mount flags to detect if its read only, rather than checking global config.

This commit is contained in:
ITotalJustice
2025-05-26 23:18:14 +01:00
parent c11d9edc4e
commit 4b25b2c5eb

View File

@@ -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;
}