You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.9 KiB
34 lines
1.9 KiB
4 years ago
|
diff -up qtwebengine-everywhere-src-5.15.5/src/core/web_engine_library_info.cpp.no-icudtl-dat qtwebengine-everywhere-src-5.15.5/src/core/web_engine_library_info.cpp
|
||
|
--- qtwebengine-everywhere-src-5.15.5/src/core/web_engine_library_info.cpp.no-icudtl-dat 2021-06-24 07:26:58.976486102 -0500
|
||
|
+++ qtwebengine-everywhere-src-5.15.5/src/core/web_engine_library_info.cpp 2021-06-24 07:32:19.272863523 -0500
|
||
|
@@ -273,7 +273,6 @@ QString dictionariesPath()
|
||
7 years ago
|
|
||
5 years ago
|
QString resourcesDataPath()
|
||
7 years ago
|
{
|
||
|
- static bool initialized = false;
|
||
|
static QString potentialResourcesPath =
|
||
4 years ago
|
#if defined(OS_MAC) && defined(QT_MAC_FRAMEWORK_BUILD)
|
||
7 years ago
|
getResourcesPath(frameworkBundle());
|
||
4 years ago
|
@@ -282,21 +281,6 @@ QString resourcesDataPath()
|
||
9 years ago
|
#else
|
||
7 years ago
|
QLibraryInfo::location(QLibraryInfo::DataPath) % QLatin1String("/resources");
|
||
|
#endif
|
||
9 years ago
|
- if (!initialized) {
|
||
|
- initialized = true;
|
||
5 years ago
|
- if (!QFileInfo::exists(potentialResourcesPath % QLatin1String("/qtwebengine_resources.pak"))) {
|
||
|
- qWarning("Qt WebEngine resources not found at %s. Trying parent directory...", qPrintable(potentialResourcesPath));
|
||
9 years ago
|
- potentialResourcesPath = QLibraryInfo::location(QLibraryInfo::DataPath);
|
||
|
- }
|
||
5 years ago
|
- if (!QFileInfo::exists(potentialResourcesPath % QLatin1String("/qtwebengine_resources.pak"))) {
|
||
|
- qWarning("Qt WebEngine resources not found at %s. Trying application directory...", qPrintable(potentialResourcesPath));
|
||
9 years ago
|
- potentialResourcesPath = QCoreApplication::applicationDirPath();
|
||
|
- }
|
||
5 years ago
|
- if (!QFileInfo::exists(potentialResourcesPath % QLatin1String("/qtwebengine_resources.pak"))) {
|
||
|
- qWarning("Qt WebEngine resources not found at %s. Trying fallback directory... The application MAY NOT work.", qPrintable(potentialResourcesPath));
|
||
9 years ago
|
- potentialResourcesPath = fallbackDir();
|
||
|
- }
|
||
|
- }
|
||
4 years ago
|
|
||
9 years ago
|
return potentialResourcesPath;
|
||
|
}
|