X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FModels.cpp;h=2c301689ea38f8cd3695e7ebd5693fc2d838ec0c;hb=f66f0e0b961dd138e4a60554373de9e64abd973b;hp=4879ac26608382145611f57c6147bd30a531fa6e;hpb=af1d37a1d6e36f63c514c20dc6413e9d61146ec6;p=lugaru.git diff --git a/Source/Models.cpp b/Source/Models.cpp index 4879ac2..2c30168 100644 --- a/Source/Models.cpp +++ b/Source/Models.cpp @@ -400,7 +400,7 @@ void Model::UpdateVertexArrayNoTexNoNorm() } } -bool Model::loadnotex(const char *filename ) +bool Model::loadnotex(const std::string& filename ) { FILE *tfile; long i; @@ -464,7 +464,7 @@ bool Model::loadnotex(const char *filename ) } -bool Model::load(const char *filename, bool texture ) +bool Model::load(const std::string& filename, bool texture ) { FILE *tfile; long i; @@ -538,7 +538,7 @@ bool Model::load(const char *filename, bool texture ) return true; } -bool Model::loaddecal(const char *filename, bool texture ) +bool Model::loaddecal(const std::string& filename, bool texture ) { FILE *tfile; long i, j; @@ -633,7 +633,7 @@ bool Model::loaddecal(const char *filename, bool texture ) return true; } -bool Model::loadraw(char *filename ) +bool Model::loadraw(const std::string& filename) { FILE *tfile; long i;