mirror of
https://github.com/AntonioND/nitro-engine.git
synced 2025-06-18 16:45:33 -04:00
library: Disable GRF loading function outside of BlocksDS
This isn't supported in devkitPro.
This commit is contained in:
parent
640d2441f6
commit
8e6d64d2d9
@ -178,6 +178,10 @@ void NE_MaterialColorDelete(NE_Material *tex)
|
||||
int NE_MaterialTexLoadGRF(NE_Material *tex, NE_Palette *pal,
|
||||
NE_TextureFlags flags, const char *path)
|
||||
{
|
||||
#ifndef NE_BLOCKSDS
|
||||
NE_DebugPrint("%s only supported in BlocksDS", __func__);
|
||||
return 0;
|
||||
#else // NE_BLOCKSDS
|
||||
NE_AssertPointer(tex, "NULL material pointer");
|
||||
NE_AssertPointer(path, "NULL path pointer");
|
||||
|
||||
@ -264,6 +268,7 @@ cleanup:
|
||||
free(gfxDst);
|
||||
free(palDst);
|
||||
return ret;
|
||||
#endif // NE_BLOCKSDS
|
||||
}
|
||||
|
||||
int NE_MaterialTexLoadFAT(NE_Material *tex, NE_TextureFormat fmt,
|
||||
|
Loading…
Reference in New Issue
Block a user