Load custom shaders from ms0:/PSP/shaders/.

This commit is contained in:
Unknown W. Brackets committed 2013-10-12 16:44:46 -07:00
1 parent 49983fa1e4
commit 74db6d4e26
1 file changed
+3 -1
+3 -1
View File
@@ -26,6 +26,7 @@
#include "file/file_util.h"
#include "file/vfs.h"
#include "Core/Config.h"
#include "GPU/Common/PostShader.h"
static std::vector<ShaderInfo> shaderInfo;
@@ -58,7 +59,7 @@ void LoadPostShaderInfo(std::vector<std::string> directories) {
name = name.substr(7);
if (path.substr(0, 7) == "assets/")
path = path.substr(7);
if (!ini.LoadFromVFS(name)) {
if (!ini.LoadFromVFS(name) && !ini.Load(fileInfo[f].fullName)) {
// vsh load. meh.
} else {
success = true;
@@ -90,6 +91,7 @@ void LoadPostShaderInfo(std::vector<std::string> directories) {
void LoadAllPostShaderInfo() {
std::vector<std::string> directories;
directories.push_back("assets/shaders");
directories.push_back(g_Config.memCardDirectory + "PSP/shaders");
LoadPostShaderInfo(directories);
}