Skip to content

Commit 4c2b960

Browse files
committed
1 parent f49b4ba commit 4c2b960

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

3rd_party/oxygine-framework/oxygine/res/Resources.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ namespace oxygine
113113
if (!file.exists() || file.size() == 0)
114114
{
115115
CONSOLE_PRINT_MODULE("can't load xml file: '" + xmlFile + "'", GameConsole::eDEBUG, GameConsole::eResources);
116-
oxygine::handleErrorPolicy(oxygine::ep_show_error, "Resources::loadXML can't find xml file: " + xmlFile);
116+
oxygine::handleErrorPolicy(oxygine::ep_ignore_error, "Resources::loadXML can't find xml file: " + xmlFile);
117117
return false;
118118
}
119119
file.open(QIODevice::ReadOnly);

coreengine/virtualpaths.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ void VirtualPaths::setSearchPath(const QString& userPath, const QStringList& mod
1414

1515
m_searchPath.clear();
1616

17+
m_searchPath.append({ oxygine::Resource::RCC_PREFIX_PATH });
18+
1719
m_searchPath.append({ userPath });
1820

1921
#ifndef USEAPPCONFIGPATH
@@ -25,12 +27,6 @@ void VirtualPaths::setSearchPath(const QString& userPath, const QStringList& mod
2527
}
2628
#endif
2729

28-
for (const auto & mod : std::as_const(mods))
29-
{
30-
m_searchPath.append({ userPath + mod, true });
31-
m_searchPath.append({ oxygine::Resource::RCC_PREFIX_PATH + mod, true });
32-
}
33-
3430
#ifdef DEPLOY_RESOURCES_AS_FOLDER
3531
m_searchPath.append({ QCoreApplication::applicationDirPath() });
3632

@@ -39,7 +35,12 @@ void VirtualPaths::setSearchPath(const QString& userPath, const QStringList& mod
3935
#endif
4036
#endif
4137

42-
m_searchPath.append({ oxygine::Resource::RCC_PREFIX_PATH });
38+
39+
for (const auto & mod : std::as_const(mods))
40+
{
41+
m_searchPath.append({ oxygine::Resource::RCC_PREFIX_PATH + mod, true });
42+
m_searchPath.append({ userPath + mod, true });
43+
}
4344

4445
for (auto & path : m_searchPath)
4546
{

resource_management/ressourcemanagement.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ void RessourceManagement<TClass>::loadAll(QStringList& list)
253253
}
254254
}
255255
}
256-
for (qint32 i = 0; i < searchPaths.size(); i++)
256+
for (qint32 i = searchPaths.size() - 1; i >= 0; i--)
257257
{
258258
QString path = searchPaths[i];
259259
QStringList filter;
@@ -281,7 +281,7 @@ void RessourceManagement<TClass>::loadAll(QStringList& list)
281281
}
282282
}
283283
}
284-
for (qint32 i = 0; i < searchPaths.size(); i++)
284+
for (qint32 i = searchPaths.size() - 1; i >= 0; i--)
285285
{
286286
QString path = searchPaths[i];
287287
QStringList filter;

0 commit comments

Comments
 (0)