Hacking SNEEK v2

  • Thread starter Thread starter Det1re
  • Start date Start date
  • Views Views 544,330
  • Replies Replies 2,761
  • Likes Likes 1
supersonic5000 said:
Priiloader seems to refuse to load sneek...
When I pick bootmii ios it says unable to load bootmii ios.
Anyone else have this problem?
Are you sure you installed bootmii IOS?
 
tattar8 said:
supersonic5000 said:
Priiloader seems to refuse to load sneek...
When I pick bootmii ios it says unable to load bootmii ios.
Anyone else have this problem?
Are you sure you installed bootmii IOS?
Yes I use sneek all the time from HBC and my sneek channel.
However if I try from priiloader it says that.
 
I HaZ uH sNEeK ChanUhL.

all you need is a dol that starts bootmii IOS.

Code:
int main(){__IOS_LaunchNewIOS(254); return 0;}
 
giantpune said:
I HaZ uH sNEeK ChanUhL.

all you need is a dol that starts bootmii IOS.

Code:
int main(){__IOS_LaunchNewIOS(254); return 0;}

lol i was actually gonna ask for a little help loading SNEEK from the real SM for the channel i made awhile back
wink.gif


will the GX source be any good loading SNEEK(bootmii/IOS) and if so what entries should be changed as it loads .dol files and we're wanting to load an IOS and im not to sure how gto go about loading a specific IOS?
 
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.
 
xflak40 said:
wtf, there's a sneek channel? have i missed something??

i also made one awhile back and debating on posting it seen as tho SNEEK is finally released

concept2o.png
 
giantpune said:
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;}
 
you don't need any of that other shit. the entire dol is just the main() function. period. no other files. no headers. no other functions. just link libogc and start ios 254. 1 line of code and since im releasing my line of code under GPL2, don't forget to put the 20 or so lines of GPL jargon above the 1 line.
 
i thought the other stuff was needed for a splash screen or would that not work launching an IOS
 
why the hell do you want a splash screen? the splash screen in the GX forwarder source everybody is using is only showed while it is loading a dol into memory. putting a splash screen in this dol would only waste time. there is nothing to wait for to load. it would be just a flash on the tv that you probably wouldn't even have enough time to tell what it is.
 
lol point proved

EDIT

mmmmmm im a fail, i cant seem to compile it
unsure.gif


Code:
main.cpp
c:/Projects/Forwarders_Sources/IOS_Forwarder/source/main.cpp:28:47: warning: no newline at end of file
c:/Projects/Forwarders_Sources/IOS_Forwarder/source/main.cpp: In function 'int main()':
c:/Projects/Forwarders_Sources/IOS_Forwarder/source/main.cpp:28: error: '__IOS_LaunchNewIOS' was not declared in this scope
make[1]: *** [main.o] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:00
 
supersonic5000 said:
tattar8 said:
supersonic5000 said:
Priiloader seems to refuse to load sneek...
When I pick bootmii ios it says unable to load bootmii ios.
Anyone else have this problem?
Are you sure you installed bootmii IOS?
Yes I use sneek all the time from HBC and my sneek channel.
However if I try from priiloader it says that.

if your using priiloader v0.3 and not v0.3b you will get that error, as v0.3 had a bug that didnt load bootmii IOS
 
pepxl said:
supersonic5000 said:
tattar8 said:
supersonic5000 said:
Priiloader seems to refuse to load sneek...
When I pick bootmii ios it says unable to load bootmii ios.
Anyone else have this problem?
Are you sure you installed bootmii IOS?
Yes I use sneek all the time from HBC and my sneek channel.
However if I try from priiloader it says that.

if your using priiloader v0.3 and not v0.3b you will get that error, as v0.3 had a bug that didnt load bootmii IOS
Oh, thanks. I feel stupid now...
 
pepxl said:
lol point proved

EDIT

mmmmmm im a fail, i cant seem to compile it
unsure.gif


Code:
main.cpp
c:/Projects/Forwarders_Sources/IOS_Forwarder/source/main.cpp:28:47: warning: no newline at end of file
c:/Projects/Forwarders_Sources/IOS_Forwarder/source/main.cpp: In function 'int main()':
c:/Projects/Forwarders_Sources/IOS_Forwarder/source/main.cpp:28: error: '__IOS_LaunchNewIOS' was not declared in this scope
make[1]: *** [main.o] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:00

Try IOS_ReloadIOS(254) instead
 
launch_new_ios() and reloadIOS() are in the exact same file. ios.h

Code:
s32 __IOS_InitializeSubsystems(void);
s32 __IOS_ShutdownSubsystems(void);
s32 __IOS_LoadStartupIOS(void);
s32 __IOS_LaunchNewIOS(int version);
s32 IOS_GetPreferredVersion(void);
s32 IOS_ReloadIOS(int version);
s32 IOS_GetVersion();
s32 IOS_GetRevision();
s32 IOS_GetRevisionMajor();
s32 IOS_GetRevisionMinor();

make sure you link libogc in your makefile.
 
still not compiling, i must not be linking right just keeps saying

*__IOS_LaunchNewIOS' was not declared in this scope"

EDIT

i added the ios.h in the same folder a main.cc and it compiled, whever or not it works is a different story
 

Site & Scene News

Popular threads in this forum