mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 11:54:30 +01:00
Load custom shaders from ms0:/PSP/shaders/.
This commit is contained in:
1 parent
49983fa1e4
commit
74db6d4e26
1 file changed
+3
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user