Changeset View
Changeset View
Standalone View
Standalone View
source/renderer/PostprocManager.cpp
Show First 20 Lines • Show All 551 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
// Generate list of available effect-sets | // Generate list of available effect-sets | ||||
std::vector<CStrW> CPostprocManager::GetPostEffects() | std::vector<CStrW> CPostprocManager::GetPostEffects() | ||||
{ | { | ||||
std::vector<CStrW> effects; | std::vector<CStrW> effects; | ||||
const VfsPath path(L"shaders/effects/postproc/"); | const VfsPath folder(L"shaders/effects/postproc/"); | ||||
VfsPaths pathnames; | VfsPaths pathnames; | ||||
if (vfs::GetPathnames(g_VFS, path, 0, pathnames) < 0) | if (vfs::GetPathnames(g_VFS, folder, 0, pathnames) < 0) | ||||
LOGERROR("Error finding Post effects in '%s'", path.string8()); | LOGERROR("Error finding Post effects in '%s'", folder.string8()); | ||||
for (const VfsPath& path : pathnames) | for (const VfsPath& path : pathnames) | ||||
if (path.Extension() == L".xml") | if (path.Extension() == L".xml") | ||||
effects.push_back(path.Basename().string()); | effects.push_back(path.Basename().string()); | ||||
// Add the default "null" effect to the list. | // Add the default "null" effect to the list. | ||||
effects.push_back(L"default"); | effects.push_back(L"default"); | ||||
▲ Show 20 Lines • Show All 274 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator