source/System/File.cpp: move path stuff to Path.cpp
This commit is contained in:
parent
66f3bb30d9
commit
1a218532c0
8 changed files with 50 additions and 30 deletions
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
#include <Spectre/Math/Color.h>
|
||||
#include <Spectre/Graphics/ShaderProgram.h>
|
||||
#include <Spectre/System/File.h>
|
||||
#include <Spectre/System/Path.h>
|
||||
#include <Graphics/GL/gl.h>
|
||||
|
||||
namespace sp {
|
||||
|
|
@ -38,7 +38,7 @@ void ShaderProgram::addShader(const Shader& shader)
|
|||
|
||||
bool ShaderProgram::loadFromFile(const std::string& filename)
|
||||
{
|
||||
std::string extension = file::getExtension(filename);
|
||||
std::string extension = Path::getExtension(filename);
|
||||
|
||||
// Meta file. load real shaders.
|
||||
if (extension == "shader.glsl") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue