Skip to content

Commit

Permalink
TAG733 2024/06/09
Browse files Browse the repository at this point in the history
  Core:自分が未対応のファイルをMDPlayerに送り付けようとするとハングするので対応しているかチェックするようにした。
  • Loading branch information
kumatan committed Jun 9, 2024
1 parent 5088bcf commit 2ef6ec4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
3 changes: 3 additions & 0 deletions mml2vgm/CHANGE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
�X�V����
TAG733 2024/06/09
Core:���������Ή��̃t�@�C����MDPlayer�ɑ���t���悤�Ƃ���ƃn���O����̂őΉ����Ă��邩�`�F�b�N����悤�ɂ����B

TAG732 2024/05/04
mucomDotNET�̍����ւ�

Expand Down
Binary file modified mml2vgm/Core/MDSound.dll
Binary file not shown.
3 changes: 3 additions & 0 deletions mml2vgm/mml2vgmIDEx64/ChipRegister.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5386,7 +5386,10 @@ private void YM3526WriteRegisterControl(Chip Chip, EnmDataType type, int address
if (Chip.Model == EnmVRModel.VirtualModel)
{
if (!ctYM3526[Chip.Number].UseScci && ctYM3526[Chip.Number].UseEmu)
{
//log.Write(string.Format("Adr:{0:X02} Dat:{1:X02}", (byte)address, (byte)data));
mds.WriteYM3526(Chip.Index, (byte)Chip.Number, (byte)address, (byte)data);
}
}
if (Chip.Model == EnmVRModel.RealModel)
{
Expand Down
14 changes: 11 additions & 3 deletions mml2vgm/mml2vgmIDEx64/form/FrmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4852,21 +4852,29 @@ private void tsmiExport_toDriverFormatAndPlay_Click(object sender, EventArgs e)

if (d == null) return;

string ext = Path.GetExtension(d.gwiFullPath).ToLower();

if (ext != ".muc" && ext != ".mml" && ext != ".gwi")
{
MessageBox.Show("この形式のエクスポートに対応していません。", "エクスポート失敗", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}

//コンパイル実施
Compile(false, false, false, false, true);
while (Compiling != 0) { Application.DoEvents(); }//待ち合わせ

if (Path.GetExtension(d.gwiFullPath).ToLower() == ".muc")
if (ext == ".muc")
{
foreach (MmlDatum md in mubData) buf.Add(md != null ? (byte)md.dat : (byte)0);
outFn = Path.ChangeExtension(d.gwiFullPath, ".mub");
}
else if (Path.GetExtension(d.gwiFullPath).ToLower() == ".mml")
else if (ext == ".mml")
{
foreach (MmlDatum md in mData) buf.Add((byte)md.dat);
outFn = Path.ChangeExtension(d.gwiFullPath, ".m");
}
else if (Path.GetExtension(d.gwiFullPath).ToLower() == ".gwi")
else if (ext == ".gwi")
{
string sf = Path.Combine(
Common.GetApplicationDataFolder(true)
Expand Down

0 comments on commit 2ef6ec4

Please sign in to comment.