From: <sv...@op...> - 2024-08-08 12:45:05
|
Author: sagamusix Date: Thu Aug 8 14:44:55 2024 New Revision: 21369 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21369 Log: [Fix] Never try to cache soundfont files completely. Practically speaking, they are never read in their entirety, and even just trying to check whether a 4GB soundfont file was a valid file at all would fail on a 32-bit installation if the CacheCompleteFileBeforeLoading settings was enabled. Modified: trunk/OpenMPT/soundlib/Dlsbank.cpp Modified: trunk/OpenMPT/soundlib/Dlsbank.cpp ============================================================================== --- trunk/OpenMPT/soundlib/Dlsbank.cpp Thu Aug 8 08:09:45 2024 (r21368) +++ trunk/OpenMPT/soundlib/Dlsbank.cpp Thu Aug 8 14:44:55 2024 (r21369) @@ -1402,7 +1402,7 @@ { if(filename.empty()) return false; m_szFileName = filename; - mpt::IO::InputFile f(filename, SettingCacheCompleteFileBeforeLoading()); + mpt::IO::InputFile f(filename, false); if(!f.IsValid()) return false; return Open(GetFileReader(f)); } |