• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisionaa0595c3f224b88389b3ed29e3b89c0c375566e8 (tree)
Zeit2018-04-30 20:05:15
AutorStarg <starg@user...>
CommiterStarg

Log Message

Add sf3 support to sfviewer

Ändern Zusammenfassung

Diff

--- a/sf_view_gui/mysndfont.c
+++ b/sf_view_gui/mysndfont.c
@@ -38,10 +38,6 @@ void CreateSoundFontTree(HWND hDlg, LPCSTR x_sf_filename_)
3838
3939 //TreeView_DeleteAllItems(hTree);
4040
41- if (_stricmp(PathFindExtension(x_sf_filename_), ".sf2")) {
42- return;
43- }
44-
4541 for (x_bank = 0; x_bank <= 127; x_bank++) {
4642 for (x_preset = 0; x_preset <= 127; x_preset++) {
4743 x_cfg_info.m_str[x_bank][x_preset] = NULL;
--- a/sf_view_gui/sfview_main.cpp
+++ b/sf_view_gui/sfview_main.cpp
@@ -246,7 +246,7 @@ LRESULT DlgMainProc_COMMAND(HWND hDlg, WPARAM wParam, LPARAM lParam)
246246 CMyFileDialog fd;
247247 fd.setOpenDlgDefaultSetting();
248248 fd.setTitle("open soundfont");
249- fd.setFilter("soundfont (*.sf2)\0*.sf2\0\0");
249+ fd.setFilter("soundfont (*.sf2;*.sf3)\0*.sf2;*.sf3\0All files (*.*)\0*.*\0\0");
250250 fd.setOwner(hDlg);
251251 if (fd.Execute()) {
252252 const int n = fd.getIndex();