X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FModels.cpp;h=e573423ba9eb674cc49b743c26a267cfe217fcd3;hb=decb00e82a2e65e25dbcdd8f16fff5a6a07d31d6;hp=5339b9b1f5e0afe86ba87aae9bb63a94bf7252b0;hpb=58aaf9dc190781f673fd5928277d3ade7434268a;p=lugaru.git diff --git a/Source/Models.cpp b/Source/Models.cpp index 5339b9b..e573423 100644 --- a/Source/Models.cpp +++ b/Source/Models.cpp @@ -424,7 +424,7 @@ void Model::UpdateVertexArrayNoTexNoNorm(){ } } -bool Model::loadnotex(char *filename ) +bool Model::loadnotex(const char *filename ) { FILE *tfile; long i; @@ -499,7 +499,7 @@ bool Model::loadnotex(char *filename ) } -bool Model::load(char *filename,bool texture ) +bool Model::load(const char *filename,bool texture ) { FILE *tfile; long i; @@ -587,7 +587,7 @@ bool Model::load(char *filename,bool texture ) return 1; } -bool Model::loaddecal(char *filename,bool texture ) +bool Model::loaddecal(const char *filename,bool texture ) { FILE *tfile; long i,j; @@ -714,7 +714,7 @@ bool Model::loadraw(char *filename ) type = rawtype; color=0; - tfile=fopen( filename, "rb" ); + tfile=fopen( ConvertFileName(filename), "rb" ); // read model settings