- Backend update from Raze, mostly maintenance changes without new functionality.

This commit is contained in:
Christoph Oelckers 2022-08-11 22:51:19 +02:00
commit c89ae6358e
22 changed files with 90 additions and 43 deletions

View file

@ -155,12 +155,13 @@ unsigned FindModel(const char * path, const char * modelfile)
FModel * model = nullptr;
FString fullname;
fullname.Format("%s%s", path, modelfile);
if (path) fullname.Format("%s%s", path, modelfile);
else fullname = modelfile;
int lump = fileSystem.CheckNumForFullName(fullname);
if (lump<0)
{
Printf("FindModel: '%s' not found\n", fullname.GetChars());
Printf(PRINT_HIGH, "FindModel: '%s' not found\n", fullname.GetChars());
return -1;
}
@ -226,7 +227,7 @@ unsigned FindModel(const char * path, const char * modelfile)
}
else
{
Printf("LoadModel: Unknown model format in '%s'\n", fullname.GetChars());
Printf(PRINT_HIGH, "LoadModel: Unknown model format in '%s'\n", fullname.GetChars());
return -1;
}
}