世界樹 7.5 で拡張子 .midi のスタンダード MIDI ファイルを読み込めるようにするパッチ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- SekaijuDoc.cpp.org | |
+++ SekaijuDoc.cpp | |
@@ -537,6 +537,7 @@ | |
} | |
// スタンダードMIDIファイル(*.mid)の場合 | |
else if (strExt.CompareNoCase (_T(".mid")) == 0 || | |
+ strExt5.CompareNoCase (_T(".midi")) == 0 || | |
strExt.CompareNoCase (_T(".vsq")) == 0) { | |
m_pMIDIData = MIDIData_LoadFromSMF (lpszPathName); | |
if (m_pMIDIData == NULL) { | |
@@ -1017,6 +1018,7 @@ | |
BeginWaitCursor (); | |
CString strPathName (lpszPathName); | |
CString strExt = strPathName.Right (4); | |
+ CString strExt5 = strPathName.Right (5); | |
CString strMsg1; | |
CString strMsg2; | |
long lRet = 0; | |
@@ -1071,6 +1073,7 @@ | |
} | |
// スタンダードMIDIファイル(*.mid)の場合 | |
else if (strExt.CompareNoCase (_T(".mid")) == 0 || | |
+ strExt5.CompareNoCase (_T(".midi")) == 0 || | |
strExt.CompareNoCase (_T(".vsq")) == 0) { | |
// MIDIイベントのチャンネルチェック | |
long lCount = 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment