Skip to content

Commit

Permalink
TAG036 2020/08/21
Browse files Browse the repository at this point in the history
  他アプリとの連携のための微調整
  • Loading branch information
kumatan committed Aug 20, 2020
1 parent f70db04 commit 4bf9616
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
�X�V����
TAG036 2020/08/21
���A�v���Ƃ̘A�g�̂��߂̔�����

TAG035 2020/08/17
Log�o�͎��̃��\�b�h�����Ԉ���Ă����̂��C���B

Expand Down
9 changes: 8 additions & 1 deletion PMDDotNETCompiler/mc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9331,7 +9331,14 @@ private void error(int dh, int dl, int si)
//; ------------------------------------------------------------------------------
if (si != 0)
{
mes += System.IO.Path.GetFileName(mml_seg.mml_filename);
try
{
mes += System.IO.Path.GetFileName(mml_seg.mml_filename);
}
catch
{
mes += mml_seg.mml_filename;
}
mes += string.Format("({0}) :", mml_seg.line);
}

Expand Down
3 changes: 1 addition & 2 deletions PMDDotNETDriver/PMDDotNETOption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public class PMDDotNETOption
public string[] envPmd;
public string[] envPmdOpt;
public string srcFile;

public string PPCHeader { get; internal set; }
public string PPCHeader;
}
}
16 changes: 14 additions & 2 deletions PMDDotNETDriver/driver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,19 +253,31 @@ public void Init(string fileName, Action<ChipDatum> opnaWrite, Action<long, int>
isSPB = (bool)pdnos[7],
envPmd = (string[])pdnos[8],
envPmdOpt = (string[])pdnos[9],
srcFile = (string)pdnos[10]
srcFile = (string)pdnos[10],
PPCHeader = (string)pdnos[11]
};

Func<string, Stream> appendFileReaderCallback =
(pdnos.Length < 13 || pdnos[12] == null)
? CreateAppendFileReaderCallback(Path.GetDirectoryName(fileName))
: (Func<string, Stream>)pdnos[12];
string[] po = (string[])option[1];
Func<ChipDatum, int> ppz8Write = (Func<ChipDatum, int>)option[2];
Func<ChipDatum, int> ppsdrvWrite = (Func<ChipDatum, int>)option[3];
Init(
srcBuf,
opnaWrite, opnaWaitSend,
pdno, po
, CreateAppendFileReaderCallback(Path.GetDirectoryName(fileName))
, appendFileReaderCallback
, ppz8Write
, ppsdrvWrite);

pdnos[2] = pdno.isAUTO;
pdnos[3] = pdno.isVA;
pdnos[4] = pdno.isNRM;
pdnos[5] = pdno.usePPS;
pdnos[6] = pdno.usePPZ;
pdnos[7] = pdno.isSPB;
}

public void Init(
Expand Down
Binary file modified PMDDotNETPlayer/lib/MDSound.dll
Binary file not shown.

0 comments on commit 4bf9616

Please sign in to comment.