Add support for packed Unreal Engine 1 vertex mesh format.

(concatenated "UMSH" signature + datafile + anivfile)
This is pretty much 100% functional by now.
Hasn't been tested on platforms other than Linux yet, though.
Code definitely deserves some cleaning.
This commit is contained in:
Mari the Deer 2018-05-13 02:58:25 +02:00 committed by Christoph Oelckers
commit f285e550d6
4 changed files with 345 additions and 0 deletions

View file

@ -39,6 +39,7 @@
#include "g_levellocals.h"
#include "r_utility.h"
#include "r_data/models/models.h"
#include "r_data/models/models_ue1.h"
#include "i_time.h"
#ifdef _MSC_VER
@ -426,6 +427,10 @@ static unsigned FindModel(const char * path, const char * modelfile)
{
model = new FMD3Model;
}
else if (!memcmp(buffer, "UMSH", 4))
{
model = new FUE1Model;
}
if (model != nullptr)
{