File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -917,6 +917,15 @@ class CDRomImpl : public PCSX::CDRom {
917
917
918
918
case CdlID + 0x100 :
919
919
SetResultSize (8 );
920
+
921
+ if (!m_iso.isActive ()) {
922
+ m_result[0 ] = 0x08 ;
923
+ m_result[1 ] = 0x40 ;
924
+ memset ((char *)&m_result[2 ], 0 , 6 );
925
+ m_stat = DiskError;
926
+ break ;
927
+ }
928
+
920
929
m_result[0 ] = m_statP;
921
930
m_result[1 ] = 0 ;
922
931
m_result[2 ] = 0 ;
@@ -1049,12 +1058,12 @@ class CDRomImpl : public PCSX::CDRom {
1049
1058
}
1050
1059
1051
1060
if (!no_busy_error) {
1052
- if (!m_iso.isActive ()) {
1061
+ /* if (!m_iso.isActive()) {
1053
1062
SetResultSize(2);
1054
1063
m_result[0] = m_statP | STATUS_ERROR;
1055
1064
m_result[1] = ERROR_NOTREADY;
1056
1065
m_stat = DiskError;
1057
- } else {
1066
+ } else {*/
1058
1067
switch (m_driveState) {
1059
1068
case DRIVESTATE_LID_OPEN:
1060
1069
case DRIVESTATE_RESCAN_CD:
@@ -1065,7 +1074,7 @@ class CDRomImpl : public PCSX::CDRom {
1065
1074
m_stat = DiskError;
1066
1075
break ;
1067
1076
}
1068
- }
1077
+ // }
1069
1078
}
1070
1079
1071
1080
finish:
You can’t perform that action at this time.
0 commit comments