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:
Lynix
2016-03-08 13:37:17 +01:00
parent b524d9395a
commit dce587bd63
22 changed files with 78 additions and 20 deletions

View File

@@ -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))