Skip to content

Commit

Permalink
Align .CUE interpreter with output from ImgBurn. Apparently Alcohol 5…
Browse files Browse the repository at this point in the history
…2% is inconsistent.
  • Loading branch information
captainys committed Feb 16, 2025
1 parent 1100572 commit 707e1ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ Tsugaru has no way of identifying which interpretation was used for generating .

I have not experienced such an ambiguity in .MDS/.MDF file format. Therefore, .MDF is highly recommended.

If you are on preservation, my recommendation is do not use .CUE file.
If you are on preservation, my recommendation is do not use .CUE file. If you do, make sure .CUE file does not use PREGAP and POSTGAP.

Tsugaru is assuming Alchol 52% and CD Manipulator. The files generated by other ripping programs may not work correctly with Tsugaru.
After some survey, looks like ImgBurn is better align with CDRWIN? Also CD Manipulator does not PREGAP and POSTGAP, instead it uses INDEX 00, which does not have ambiguity. Tsugaru will support .CUE file created by ImgBurn and CD Manipulator. But, .CUE files created by other application may not run correctly on Tsugaru.



Expand Down Expand Up @@ -133,9 +133,9 @@ Alcohol 52%の解釈では、PREGAPはそれが存在するトラックにのみ

ですが、これまでのところ.MDS/.MDFファイルではそのような曖昧さに当たったことはありません。なので、.MDFファイルを使用することを推奨します。

また、ゲームの保存、アーカイブを目的とするならば、今すぐ.CUEファイルの使用をやめて.MDS/.MDFファイルに置き換えることを勧めます。
また、ゲームの保存、アーカイブを目的とするならば、今すぐ.CUEファイルの使用をやめて.MDS/.MDFファイルに置き換えることを勧めます。.CUEファイルをどうしても使う場合は、PREGAPとPOSTGAPキーワードを使わないアプリケーションでイメージを作成することを勧めます。

津軽はAlcohol 52%とCD Manipulator (このふたつは意見が一致するらしい) で生成した.CUEファイルであれば実行できるようになっています。その他のプログラムで生成した.CUEファイルの場合正常に動作しない可能性があります
どうもImgBurnを使う方がCDRWINと近いCUEファイルを生成するようで、またCD Manipulatorが出力するCUEファイルはPREGAP, POSTGAPキーワードを使わない(代わりにINDEX 00を使用)ようなので、このふたつのアプリケーションが出力したCUEファイルはサポートしますが、それ以外のプログラムが出力したCUEファイルでは正常に動作しない可能性があります



Expand Down
6 changes: 3 additions & 3 deletions src/discimg/discimg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -604,15 +604,15 @@ bool DiscImage::TryAnalyzeTracksWithProbablyCorrectInterpretation(void)
tracks[i].preGapSectorLength=0;
totalPREGAP+=tracks[i].preGap;

tracks[i].start+=tracks[i].preGap; // Displace the track-start MSF.
tracks[i].preGap.FromHSG(0); // Then forget about this cursed PREGAP.

tracks[i].locationInFile=pointerInBinary;
if(i+1<tracks.size())
{
auto trackLen=tracks[i+1].start-tracks[i].start;
pointerInBinary+=(tracks[i].sectorLength*trackLen.ToHSG());
}

tracks[i].start+=totalPREGAP; // Displace the track-start MSF.
tracks[i].preGap.FromHSG(0); // Then forget about this cursed PREGAP.
}


Expand Down

0 comments on commit 707e1ae

Please sign in to comment.