mirror of
https://github.com/86Box/86Box.git
synced 2026-02-23 18:08:20 -07:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user