Add support for custom resource parameters
And allow users to skip a precise loader using them Former-commit-id: 297af2e4a24ad67c343aae5d89352abf4ea05f63
This commit is contained in:
@@ -28,7 +28,9 @@ namespace Nz
|
||||
|
||||
Ternary Check(Stream& stream, const MeshParams& parameters)
|
||||
{
|
||||
NazaraUnused(parameters);
|
||||
bool skip;
|
||||
if (parameters.custom.GetBooleanParameter("NativeMD2Loader_Skip", &skip) && skip)
|
||||
return Ternary_False;
|
||||
|
||||
UInt32 magic[2];
|
||||
if (stream.Read(&magic[0], 2*sizeof(UInt32)) == 2*sizeof(UInt32))
|
||||
|
||||
Reference in New Issue
Block a user