--- linuxsampler/trunk/src/db/InstrumentsDb.h 2017/01/16 14:08:15 3090 +++ linuxsampler/trunk/src/db/InstrumentsDb.h 2017/01/16 15:01:21 3091 @@ -24,7 +24,11 @@ #define __LS_INSTRUMENTSDB_H__ #include -#include +#if AC_APPLE_UNIVERSAL_BUILD +# include +#else +# include +#endif #include "../common/Mutex.h" #include "../common/WorkerThread.h" #include "../EventListeners.h" @@ -124,10 +128,10 @@ /** * Creates an instruments database file. - * @param FilePath the pathname of the file to create. + * @param FilePath optional pathname of the file to create. * @throws Exception If the creation of the database file failed. */ - static void CreateInstrumentsDb(String FilePath); + void CreateInstrumentsDb(String FilePath = ""); /** * This method is used to access the instruments database. @@ -861,6 +865,8 @@ */ String PrepareSubdirectory(String DbDir, String FsPath); + void EnsureDBFileExists(); + /** * Adds the specified node to the specified database directory path. * @returns The newly created instruments database path. @@ -921,6 +927,8 @@ */ static void CheckFileName(String File); + static String GetDefaultDBLocation(); + #ifndef WIN32 /** SQLite user function for handling regular expressions */ static void Regexp(sqlite3_context* pContext, int argc, sqlite3_value** ppValue);