mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 19:36:40 +00:00
Format osgpluginchecker.cpp.in
I formatted the generated file that's part of the VS solution, then diffed it against the input and changed it to match.
This commit is contained in:
parent
2a5f8d5bab
commit
bcd54ab1ff
1 changed files with 9 additions and 7 deletions
|
@ -64,14 +64,16 @@ namespace Misc
|
|||
bool haveAllPlugins = true;
|
||||
for (std::string_view plugin : USED_OSG_PLUGIN_FILENAMES)
|
||||
{
|
||||
if (std::find_if(availableOSGPlugins.begin(), availableOSGPlugins.end(), [&](std::string_view availablePlugin) {
|
||||
if (std::find_if(availableOSGPlugins.begin(), availableOSGPlugins.end(),
|
||||
[&](std::string_view availablePlugin) {
|
||||
#ifdef OSG_USE_UTF8_FILENAME
|
||||
std::filesystem::path pluginPath{ stringToU8String(availablePlugin) };
|
||||
#else
|
||||
std::filesystem::path pluginPath {availablePlugin};
|
||||
#endif
|
||||
return pluginPath.filename() == plugin;
|
||||
}) == availableOSGPlugins.end())
|
||||
})
|
||||
== availableOSGPlugins.end())
|
||||
{
|
||||
Log(Debug::Error) << "Missing OSG plugin: " << plugin;
|
||||
haveAllPlugins = false;
|
||||
|
|
Loading…
Reference in a new issue