diff --git a/pcsx2/IopBios.cpp b/pcsx2/IopBios.cpp index 843f2a0275..6d848c492a 100644 --- a/pcsx2/IopBios.cpp +++ b/pcsx2/IopBios.cpp @@ -907,8 +907,12 @@ namespace R3000A { auto buf = std::make_unique(count); - for (u32 i = 0; i < count; i++) - buf[i] = iopMemRead8(data + i); + [[unlikely]] + if (!iopMemSafeReadBytes(data, buf.get(), count)) + { + for (u32 i = 0; i < count; i++) + buf[i] = iopMemRead8(data + i); + } v0 = file->write(buf.get(), count);