Auto-load gm.dls on Windows if FluidSynth 2.5.0 or later is detected and no soundfont is specified

Windows builds should generally use it or later
This commit is contained in:
Cacodemon345
2026-01-12 16:20:32 +06:00
parent 1be6e241b4
commit 527fb269e2
3 changed files with 26 additions and 0 deletions

View File

@@ -752,6 +752,16 @@ plat_chdir(char *path)
return QDir::setCurrent(QString(path)) ? 0 : -1;
}
#ifdef _WIN32
void plat_get_system_directory(char *outbuf)
{
wchar_t wc[512];
GetSystemWindowsDirectoryW(wc, 512);
QString str = QString::fromWCharArray(wc);
strcpy(outbuf, str.toUtf8());
}
#endif
void
plat_get_global_config_dir(char *outbuf, const size_t len)
{