mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-09-21 20:01:40 +02:00
postprocessing: only add *.txt shader and sort them
This commit is contained in:
parent
09e5a7ace7
commit
ebb34ced91
1 changed files with 5 additions and 2 deletions
|
@ -55,6 +55,7 @@ Make AA apply instantly during gameplay if possible
|
||||||
#include "LogManager.h"
|
#include "LogManager.h"
|
||||||
|
|
||||||
#include <cstdarg>
|
#include <cstdarg>
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include "EmuWindow.h"
|
#include "EmuWindow.h"
|
||||||
|
@ -116,10 +117,12 @@ void GetShaders(std::vector<std::string> &shaders)
|
||||||
for (u32 i = 0; i < entry.children.size(); i++)
|
for (u32 i = 0; i < entry.children.size(); i++)
|
||||||
{
|
{
|
||||||
std::string name = entry.children[i].virtualName.c_str();
|
std::string name = entry.children[i].virtualName.c_str();
|
||||||
if (!strcasecmp(name.substr(name.size() - 4).c_str(), ".txt"))
|
if (!strcasecmp(name.substr(name.size() - 4).c_str(), ".txt")) {
|
||||||
name = name.substr(0, name.size() - 4);
|
name = name.substr(0, name.size() - 4);
|
||||||
shaders.push_back(name);
|
shaders.push_back(name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
std::sort(shaders.begin(), shaders.end());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue