let each game ship its own shaders
This commit is contained in:
parent
35baae9cee
commit
9ecf7918e3
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
#include "stratagus.h"
|
||||
#include "parameters.h"
|
||||
#include "video.h"
|
||||
#include "game.h"
|
||||
#include "iolib.h"
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
@ -101,9 +102,9 @@ extern bool LoadShaders(int direction, char* shadernameOut) {
|
|||
std::vector<FileList> flp;
|
||||
std::string shaderPath(Parameters::Instance.GetUserDirectory());
|
||||
#ifdef _WIN32
|
||||
shaderPath.append("\\shaders\\");
|
||||
shaderPath.append("\\shaders\\" + GameName + "\\");
|
||||
#else
|
||||
shaderPath.append("/shaders/");
|
||||
shaderPath.append("/shaders/" + GameName + "/");
|
||||
#endif
|
||||
int n = ReadDataDirectory(shaderPath.c_str(), flp);
|
||||
int numShaderFiles = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue