mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-03-13 19:05:26 +00:00
fix some crashes of milkdrop 104 presets
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@393 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
@ -87,6 +87,12 @@ void PresetLoader::rescan()
|
||||
&& (filename.rfind(MILKDROP_FILE_EXTENSION) != (filename.length() - MILKDROP_FILE_EXTENSION.length())))
|
||||
continue;
|
||||
|
||||
if (filename.length() <= MILKDROP_FILE_EXTENSION.length())
|
||||
continue;
|
||||
|
||||
if (filename.length() > 0 && filename[0] == '.')
|
||||
continue;
|
||||
|
||||
// Create full path name
|
||||
out << m_dirname << PATH_SEPARATOR << filename;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user