Move Current_Ios, change fill3 to fill2

This commit is contained in:
TheShadowEevee 2022-04-20 19:43:40 -05:00
parent 84eb194bce
commit 462f73a66f
No known key found for this signature in database
GPG Key ID: 7A8AA92B3BAFAB75
4 changed files with 3 additions and 5 deletions

View File

@ -79,7 +79,7 @@ void zero_sig(signed_blob *sig) {
void brute_tmd(tmd *p_tmd) { void brute_tmd(tmd *p_tmd) {
u16 fill; u16 fill;
for(fill=0; fill<65535; fill++) { for(fill=0; fill<65535; fill++) {
p_tmd->fill3=fill; p_tmd->fill2=fill;
sha1 hash; sha1 hash;
// debug_printf("SHA1(%p, %x, %p)\n", p_tmd, TMD_SIZE(p_tmd), hash); // debug_printf("SHA1(%p, %x, %p)\n", p_tmd, TMD_SIZE(p_tmd), hash);
SHA1((u8 *)p_tmd, TMD_SIZE(p_tmd), hash);; SHA1((u8 *)p_tmd, TMD_SIZE(p_tmd), hash);;

View File

@ -222,7 +222,7 @@ int main(int argc, char **argv) {
char sysmenu_region; char sysmenu_region;
bool needbreak = false; bool needbreak = false;
u32 buttons; u32 buttons;
Current_Ios = 0; int Current_Ios = 0;
ret = IOS_ReloadIOS(236); ret = IOS_ReloadIOS(236);
if(ret != 0) { if(ret != 0) {

View File

@ -174,7 +174,7 @@ void PrintBanner() {
ClearScreen(); ClearScreen();
Console_SetColors(GREEN, 0, WHITE, 2); Console_SetColors(GREEN, 0, WHITE, 2);
char text[ConsoleCols]; char text[ConsoleCols];
snprintf(text, sizeof(text), "Any Region Changer ModMii Edition %.1lf.%i IOS: %i", ARCME_VERSION, ARCME_REV, Current_Ios); snprintf(text, sizeof(text), "Any Region Changer ModMii Edition %.1lf.%i IOS: %i", ARCME_VERSION, ARCME_REV, IOS_GetVersion());
PrintCenter(text, ConsoleCols); PrintCenter(text, ConsoleCols);
Console_SetColors(BLACK, 0, WHITE, 2); Console_SetColors(BLACK, 0, WHITE, 2);
} }

View File

@ -57,8 +57,6 @@ distribution.
#define ARCME_VERSION 1.0 #define ARCME_VERSION 1.0
#define ARCME_REV 6 #define ARCME_REV 6
int Current_Ios;
// be functions from segher's wii.git // be functions from segher's wii.git
u16 be16(const u8 *p); u16 be16(const u8 *p);
u32 be32(const u8 *p); u32 be32(const u8 *p);