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:
@@ -45,7 +45,9 @@ namespace Nz
|
||||
|
||||
Ternary Check(Stream& stream, const ImageParams& parameters)
|
||||
{
|
||||
NazaraUnused(parameters);
|
||||
bool skip;
|
||||
if (parameters.custom.GetBooleanParameter("NativeSTBLoader_Skip", &skip) && skip)
|
||||
return Ternary_False;
|
||||
|
||||
int width, height, bpp;
|
||||
if (stbi_info_from_callbacks(&callbacks, &stream, &width, &height, &bpp))
|
||||
|
||||
Reference in New Issue
Block a user