Add Lensfun DB lookup fallback directory

Load from the bundled database directory if loading from the configured
location fails.
This commit is contained in:
Lawrence Lee
2022-11-24 13:09:30 -08:00
parent 331b3af0e4
commit 255dc13843
4 changed files with 17 additions and 2 deletions

View File

@@ -425,12 +425,14 @@ int main (int argc, char **argv)
}
options.rtSettings.lensfunDbDirectory = LENSFUN_DB_PATH;
options.rtSettings.lensfunDbBundleDirectory = LENSFUN_DB_PATH;
#else
argv0 = DATA_SEARCH_PATH;
creditsPath = CREDITS_SEARCH_PATH;
licensePath = LICENCE_SEARCH_PATH;
options.rtSettings.lensfunDbDirectory = LENSFUN_DB_PATH;
options.rtSettings.lensfunDbBundleDirectory = LENSFUN_DB_PATH;
#endif
#ifdef WIN32