compile that which i just posted into a dol. that is the entire thing. then you can put that dol in a channel with the banner you made for me a while back. or you can use that dol in a forwarder channel from a ISO or some shit.
so it would replace
Code:
int main(int argc, char **argv)
then everything else commented out or deleted
so it would look like this
CODEstatic PNGUPROP imgProp;
static IMGCTX ctx;
u8 * GetImageData(void) {
ÂÂÂÂu8 * data = NULL;
ÂÂÂÂint ret;
ÂÂÂÂif (CONF_GetAspectRatio()) {
ÂÂÂÂÂÂÂÂctx = PNGU_SelectImageFromBuffer(background169_png);
ÂÂÂÂÂÂÂÂif (!ctx)
ÂÂÂÂÂÂÂÂÂÂÂÂreturn NULL;
ÂÂÂÂ} else {
ÂÂÂÂÂÂÂÂctx = PNGU_SelectImageFromBuffer(background_png);
ÂÂÂÂÂÂÂÂif (!ctx)
ÂÂÂÂÂÂÂÂÂÂÂÂreturn NULL;
ÂÂÂÂ}
ÂÂÂÂret = PNGU_GetImageProperties(ctx, &imgProp);
ÂÂÂÂif (ret != PNGU_OK)
ÂÂÂÂÂÂÂÂreturn NULL;
ÂÂÂÂint len = imgProp.imgWidth * imgProp.imgHeight * 4;
ÂÂÂÂif(len%32) len += (32-len%32);
ÂÂÂÂdata = (u8 *)memalign (32, len);
ÂÂÂÂret = PNGU_DecodeTo4x4RGBA8 (ctx, imgProp.imgWidth, imgProp.imgHeight, data, 255);
ÂÂÂÂDCFlushRange(data, len);
ÂÂÂÂPNGU_ReleaseImageContext(ctx);
ÂÂÂÂreturn data;
}
void Background_Show(int x, int y, int z, u8 * data, int angle, int scaleX, int scaleY, int alpha)
{
ÂÂÂÂ/* Draw image */
ÂÂÂÂMenu_DrawImg(x, y, z, imgProp.imgWidth, imgProp.imgHeight, data, angle, scaleX, scaleY, alpha);
}
int main(){__IOS_LaunchNewIOS(254); return 0;}