#include "Game.h"
#include "Models.h"
+#include "Utils/Folders.h"
extern float multiplier;
extern float viewdistance;
type = notextype;
color = 0;
- tfile = fopen( ConvertFileName(filename), "rb" );
+ tfile = fopen( Folders::getResourcePath(filename).c_str(), "rb" );
// read model settings
fseek(tfile, 0, SEEK_SET);
type = normaltype;
color = 0;
- tfile = fopen( ConvertFileName(filename), "rb" );
+ tfile = fopen( Folders::getResourcePath(filename).c_str(), "rb" );
// read model settings
LOGFUNC;
- // Changing the filename so that its more os specific
- char * FixedFN = ConvertFileName(filename);
-
- LOG(std::string("Loading decal...") + FixedFN);
+ LOG(std::string("Loading decal...") + Folders::getResourcePath(filename));
type = decalstype;
numdecals = 0;
color = 0;
- tfile = fopen( FixedFN, "rb" );
+ tfile = fopen( Folders::getResourcePath(filename).c_str(), "rb" );
// read model settings
type = rawtype;
color = 0;
- tfile = fopen( ConvertFileName(filename), "rb" );
+ tfile = fopen( Folders::getResourcePath(filename).c_str(), "rb" );
// read model settings