Commits

Michael Jimenez committed c460cb9

fix for SSX on Tour

  • Participants
  • Parent commits 715d765

Comments (0)

Files changed (3)

File modules/iopcore/cdvdfsv/Rules.make

 
 
 $(IOP_BIN) : $(IOP_OBJS)
-	$(IOP_CC) $(IOP_LDFLAGS) -o $(IOP_BIN) $(IOP_OBJS) $(IOP_LIBS)
+	$(IOP_CC) $(IOP_LDFLAGS) -o $(IOP_BIN) $(IOP_OBJS) $(IOP_LIBS) -Xlinker -Map -Xlinker cdvdfsv.map
 
 $(IOP_LIB) : $(IOP_OBJS)
 	$(IOP_AR) cru $(IOP_LIB) $(IOP_OBJS)

File modules/iopcore/cdvdman/Rules.make

 
 
 $(IOP_BIN) : $(IOP_OBJS)
-	$(IOP_CC) $(IOP_LDFLAGS) -o $(IOP_BIN) $(IOP_OBJS) $(IOP_LIBS)
+	$(IOP_CC) $(IOP_LDFLAGS) -o $(IOP_BIN) $(IOP_OBJS) $(IOP_LIBS) -Xlinker -Map -Xlinker cdvdman.map
 
 $(IOP_LIB) : $(IOP_OBJS)
 	$(IOP_AR) cru $(IOP_LIB) $(IOP_OBJS)

File modules/iopcore/cdvdman/cdvdman.c

 	DPRINTF("sceCdDiskReady %d\n", mode);
 	cdvdman_stat.err = CDVD_ERR_NO;
 
-	if (mode == 0) {
-		while (sceCdDiskReady(1) == CDVD_READY_NOTREADY)
-			DelayThread(5000);
+	if (fs_inited) {
+		if (mode == 0) {
+			while (sceCdDiskReady(1) == CDVD_READY_NOTREADY)
+				DelayThread(5000);
+		}
+
+#ifdef ALT_READ_CORE
+		if (!cdvdman_stat.cdNCmd) {
+			if (cdvdman_stat.cddiskready)
+				return CDVD_READY_READY;
+		}
+#else	
+		if (!sync_flag)
+			return CDVD_READY_READY;
+#endif
 	}
 
-#ifdef ALT_READ_CORE
-	if (!cdvdman_stat.cdNCmd) {
-		if (cdvdman_stat.cddiskready)
-			return CDVD_READY_READY;
-	}
-#else	
-	if (!sync_flag)
-		return CDVD_READY_READY;
-#endif
-
 	return CDVD_READY_NOTREADY;
 }