Skip to content
Permalink
Browse files

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

  • Loading branch information...
unknownbrackets committed Oct 12, 2013
1 parent 49983fa commit 74db6d4e266f2ebd1d7b61309eab934c21b60a4c
Showing with 3 additions and 1 deletion.
  1. +3 −1 GPU/Common/PostShader.cpp
@@ -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);
}

0 comments on commit 74db6d4

Please sign in to comment.
You can’t perform that action at this time.