/dev/es: Difference between revisions
< /dev
more stuff |
No edit summary |
||
| Line 74: | Line 74: | ||
ios_ioctlv( fd, 0x13, 2, 1, vec); | ios_ioctlv( fd, 0x13, 2, 1, vec); | ||
[[Category:IOS API documentation]] [[Category:Ugly pages]] [[Category:Pages that confuse the wiki with a pastebin]] [[Category:API documentation that doesn't explain how to use the API]] | |||
Revision as of 22:33, 21 March 2008
The ES (EncryptionSystem?) is responsible for the security of Wii, making it the enemy!
Here are some ES functions:
ios_ioctlv( fd, 2, 4, 0, vec); ios_ioctlv( fd, 3, 2, 0, vec); ios_ioctlv( fd, 4, 2, 0, vec); ios_ioctlv( fd, 5, 1, 0, vec); ios_ioctlv( fd, 6, 0, 0, vec);
ios_ioctlv( fd, 9, 1, 0, vec); // ESP_OpenContentFile ios_ioctlv( fd, 0x0A, 1, 1, vec); // ESP_ReadContentFile ios_ioctlv( fd, 0x0B, 1, 0, vec); // ESP_CloseContentFile ios_ioctlv( fd, 0x0C, 0, 1, vec); ios_ioctlv( fd, 0x0D, 1, 1, vec); ios_ioctlv( fd, 0x0E, 0, 1, vec); // ES_ListTitlesOnCard ios_ioctlv( fd, 0x0F, 1, 1, vec); ios_ioctlv( fd, 0x10, 0, 1, vec); // ESP_ListTitleContentsOnCard ios_ioctlv( fd, 0x11, 2, 1, vec); // ESP_ListTitleContentsOnCard_2 ? ios_ioctlv( fd, 0x12, 1, 1, vec); // ES_GetTicketViews ios_ioctlv( fd, 0x13, 1, 1, vec); // ES_GetTicketViews_2? ios_ioctlv( fd, 0x14, 1, 1, vec); // ES_GetTmdView
ios_ioctlv( fd, 0x16, 1, 2, vec); // ESP_GetConsumption
ios_ioctlv( fd, 0x1b, 1, 1, vec); // ES_DiGetTicketView ios_ioctlv( fd, 0x1c, 1, 1, vec); // ES_GetDataDir ios_ioctlv( fd, 0x1d, 0, 1, vec); // ESP_GetTitleId
ios_ioctlv( fd, 0x23, 3, 0, vec); // ESP_SeekContentFile ios_ioctlv( fd, 0x2B, 1, 0, vec); ios_ioctlv( fd, 0x2F, 0, 0, vec); ios_ioctlv( fd, 0x39, 0, 1, vec); // ESP_GetDiTmd
ES_LaunchTitle ((u32*)vec)[(0x40>>2)] = TitleIDL; ((u32*)vec)[(0x40>>2)+1] = TitleIDH; ((u32*)vec)[0]=(u32)PHYSADDR(vec+0x40); ((u32*)vec)[1]=8; ((u32*)vec)[2]=(u32)PHYSADDR(vec+0x60); // data returned by ES_GetTicketViews ((u32*)vec)[3]=0xD8; ios_ioctlvReboot( fd, 8, 2, 0, vec);
ES_GetTicketViewNumber: ((u32*)vec)[(0x40>>2)] = TitleIDL; ((u32*)vec)[(0x40>>2)+1] = TitleIDH; ((u32*)vec)[0]=(u32)PHYSADDR(vec+0x40); ((u32*)vec)[1]=8; ((u32*)vec)[2]=(u32)PHYSADDR(vec+0x60); ((u32*)vec)[3]=4; ios_ioctlv( fd, 0x12, 1, 1, vec);
ES_GetTicketViews ((u32*)vec)[(0x40>>2)] = TitleIDL; ((u32*)vec)[(0x40>>2)+1] = TitleIDH; ((u32*)vec)[(0x60>>2)] = num; // value returned by ES_GetTicketViewNumber ((u32*)vec)[0]=(u32)PHYSADDR(vec+0x40); ((u32*)vec)[1]=8; ((u32*)vec)[2]=(u32)PHYSADDR(vec+0x60); ((u32*)vec)[3]=4; ((u32*)vec)[4]=(u32)PHYSADDR(vec+0x80); ((u32*)vec)[5]=num*0xD8; ios_ioctlv( fd, 0x13, 2, 1, vec);