Skip to content

Commit 71dbffd

Browse files
author
kumatan
committed
TAG205 2025/02/23
Compiler ループ回数が未指定の場合に次の文字をスキップしてしまうバグを修正 オリジナルは省略が元々できないのでDotNETのみの現象。
1 parent 5c366e1 commit 71dbffd

12 files changed

Lines changed: 24 additions & 29 deletions

File tree

CHANGE.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
�X�V����
2+
TAG205 2025/02/23
3+
Compiler
4+
���[�v�񐔂����w��̏ꍇ�Ɏ��̕������X�L�b�v���Ă��܂��o�O���C��
5+
�I���W�i���͏ȗ������X�ł��Ȃ��̂�DotNET�݂̂̌��ہB
26
TAG204 2024/10/24
37
Driver
48
���[�v�񐔌��o�����̃o�O���C��
512 Bytes
Binary file not shown.

Console_NET5/Properties/launchSettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"profiles": {
33
"Console_NET5": {
44
"commandName": "Project",
5-
"commandLineArgs": "\"c:\\ks\\Dotnet_test.muc\"",
5+
"commandLineArgs": "\"D:\\bootcamp\\FM音源\\data\\自作\\mamonoro\\YO-KAI_DiscoCompileTest\\YO-KAI_Disco_DotNET.muc\"",
66
"nativeDebugging": true
77
}
88
}

PCMTool/Program.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private static void make(string fn)
9494
for (int i = 0; i < 6; i++)
9595
{
9696
if (pcmdata[i] == null) continue;
97-
string dstFn = Path.Combine(Path.GetDirectoryName(fn), Path.GetFileNameWithoutExtension(fn) + addName[i] );
97+
string dstFn = Path.Combine(Path.GetDirectoryName(fn), Path.GetFileNameWithoutExtension(fn) + addName[i]);
9898
File.WriteAllBytes(dstFn, pcmdata[i]);
9999
Log.WriteLine(LogLevel.INFO, string.Format("Write:{0} size:{1}", dstFn, pcmdata[i].Length));
100100
}
@@ -111,12 +111,12 @@ private static void make(string fn)
111111

112112
private static List<string>[] divider(string[] src)
113113
{
114-
List<string>[] ret = new List<string>[6] {
114+
List<string>[] ret = new List<string>[6] {
115115
new List<string>(), new List<string>(), new List<string>(),
116-
new List<string>(), new List<string>(), new List<string>()
116+
new List<string>(), new List<string>(), new List<string>()
117117
};
118118

119-
foreach(string lin in src)
119+
foreach (string lin in src)
120120
{
121121
if (string.IsNullOrEmpty(lin)) continue;
122122
if (lin.Length < 3) continue;
@@ -125,7 +125,7 @@ private static List<string>[] divider(string[] src)
125125

126126
string li = lin.Substring(2).ToLower();
127127
//文字列の長いものから比較
128-
if (li.IndexOf("pcm_3rd_b") == 0) { ret[2].Add(lin.Substring(2 + 9)); }
128+
if (li.IndexOf("pcm_3rd_b") == 0) { ret[2].Add(lin.Substring(2 + 9)); }
129129
else if (li.IndexOf("pcm_4th_b") == 0) { ret[3].Add(lin.Substring(2 + 9)); }
130130
else if (li.IndexOf("pcm_3rd_a") == 0) { ret[4].Add(lin.Substring(2 + 9)); }
131131
else if (li.IndexOf("pcm_4th_a") == 0) { ret[5].Add(lin.Substring(2 + 9)); }

Vgm/Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ private static int AnalyzeOption(string[] args)
165165
int i = 0;
166166
loop = 2;
167167

168-
while (args != null
169-
&& args.Length > 0
170-
&& args[i].Length > 0
171-
&& args[i] != null
168+
while (args != null
169+
&& args.Length > 0
170+
&& args[i].Length > 0
171+
&& args[i] != null
172172
&& args[i][0] == '-')
173173
{
174174
string op = args[i].Substring(1).ToUpper();

Vgm/VgmWriter.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void WriteYM2610(int v, byte port, byte address, byte data)
121121
{
122122
if (dest == null) return;
123123

124-
if (useChips[2 + v]==0) return;
124+
if (useChips[2 + v] == 0) return;
125125

126126
if (waitCounter != 0)
127127
{
@@ -450,9 +450,9 @@ public void useChipsFromMub(byte[] buf)
450450
for (int k = 0; k < pageCount[i][j]; k++)
451451
{
452452
pageLength[i][j][k] = (uint)(
453-
buf[ptr]
454-
+ buf[ptr + 1] * 0x100
455-
+ buf[ptr + 2] * 0x10000
453+
buf[ptr]
454+
+ buf[ptr + 1] * 0x100
455+
+ buf[ptr + 2] * 0x10000
456456
+ buf[ptr + 3] * 0x1000000);
457457
ptr += 8;
458458
}

lib/musicDriverInterface.dll

512 Bytes
Binary file not shown.

mucomDotNETCompiler/muc88.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,7 +1905,10 @@ private EnmFCOMPNextRtn SETLPE()
19051905
if (mucInfo.Carry)//数値読み取れなかった
19061906
{
19071907
if (mucInfo.DriverType == MUCInfo.enmDriverType.DotNet)
1908+
{
19081909
rep = 2;
1910+
ptr--;
1911+
}
19091912
else
19101913
throw new MucException(
19111914
string.Format(msg.get("E0201"), msg.get("E0436"))

mucomDotNETConsole/Properties/launchSettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"profiles": {
33
"Console": {
44
"commandName": "Project",
5-
"commandLineArgs": "-LOGLEVEL=TRACE \"C:\\Users\\kuma\\Downloads\\test2608_01\\test2608_Ch3SpecialMode_OK.muc\""
5+
"commandLineArgs": "-LOGLEVEL=TRACE \"D:\\bootcamp\\FM音源\\data\\自作\\Natsuki\\test_20250223.muc\""
66
}
77
}
88
}

mucomDotNETPlayer/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System.Reflection;
2-
using System.Runtime.CompilerServices;
3-
using System.Runtime.InteropServices;
1+
using System.Runtime.InteropServices;
42

53
// ComVisible を false に設定すると、このアセンブリ内の型は COM コンポーネントから
64
// 参照できなくなります。COM からこのアセンブリ内の型にアクセスする必要がある場合は、

0 commit comments

Comments
 (0)