use usb mount flags to detect if its read only, rather than checking global config.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user