소스 검색

cdrom: honor different blocksizes when switching CDs

Eric Helgeson 1 년 전
부모
커밋
e5b83372e7
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/BlueSCSI_cdrom.cpp

+ 2 - 1
src/BlueSCSI_cdrom.cpp

@@ -1254,7 +1254,8 @@ bool cdromSwitch(image_config_t &img, const char* filename)
 #endif
         log("Switching to next CD-ROM image for ", target_idx, ": ", filename);
         img.file.close();
-        bool status = scsiDiskOpenHDDImage(target_idx, filename, target_idx, 0, 2048);
+        int block_size = getBlockSize(const_cast<char*>(filename), target_idx, 2048);
+        bool status = scsiDiskOpenHDDImage(target_idx, filename, target_idx, 0, block_size);
 
         if (status)
         {