Skip to content

Commit c568179

Browse files
authored
Merge pull request #1864 from grumpycoders/pcdrv-open-fix
Fixing PCopen's read only mode.
2 parents acba931 + dfacac0 commit c568179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/r3000a.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void PCSX::R3000Acpu::exception(uint32_t code, bool bd, bool cop0) {
141141
PCdrvFiles::iterator file;
142142
auto path = basepath / filename;
143143
fd = m_availableFDs.front();
144-
if (regs.a1 == 0) {
144+
if (regs.a2 == 0) {
145145
file = m_pcdrvFiles.insert(fd, new PCdrvFile(path));
146146
} else {
147147
file = m_pcdrvFiles.insert(fd, new PCdrvFile(path, FileOps::READWRITE));

0 commit comments

Comments
 (0)