after we change to the directory with the executable, we need to clear out the FileDB cache.
This commit is contained in:
@@ -109,7 +109,10 @@ static void ChangeToDirOfExecutable(const char *argv0)
|
|||||||
* are and use paths as needed, so we don't depend on the binary being
|
* are and use paths as needed, so we don't depend on the binary being
|
||||||
* in the same place as "Songs" ... */
|
* in the same place as "Songs" ... */
|
||||||
if( !DoesFileExist("Songs") )
|
if( !DoesFileExist("Songs") )
|
||||||
|
{
|
||||||
chdir( DirOfExecutable );
|
chdir( DirOfExecutable );
|
||||||
|
FlushDirCache();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user