Thanks Aruskano. I have delete all the fonctions in the second main like "draw background etc..." I have copied and past all the "define" and "include". I will continue in that way. Must I have to delete the "(int argc, char **argv)" and write "()" ?by RiderFx3 - Coding
The function int test install themes on Wii Menu. it's the code source of mymenuify (not the GUI version) At the origin, the "int test" is the "int main" of mymenuify, and I would integrate that than a function in another homebrew. This function will be launched when i press B. You know every thing ;)by RiderFx3 - Coding
(Yeah my car is fully modded, I have learned with a friend about how modifying the power of my car, and add horse power :) I can now repair my car without my friend.) on the Wii, i have modded an existing homebrew, without any base in dev, and I want to understand step by step why it don't work. I don't have the time to completely learn the C langage so i try to understand the mecanby RiderFx3 - Coding
Thanks guys ! I'm not developer... :) I'm trying to mod an existing homebrew. In facts, I want to add an other homebrew, IN my mod. So I have 2 "int main". And i have renamed the other int main, and I want to call the function when I press B. The function test need the "(int argc, char **argv)" to work ?by RiderFx3 - Coding
.c:118:14: error: too few arguments to function 'test' .c:58:5: note: declared here note: declared here point to: int test (int argc, char **argv); thanksby RiderFx3 - Coding
Thanks Daid! so what must I have to add ?by RiderFx3 - Coding
Hello guy's ! I have this error of compil: error: too few arguments to function 'test' The function is: int test(int argc, char **argv) { device = PI_INTERNAL_SD; /* Initialize libfat */ ret = fatInitDefault(); if (ret < 0) { printf("\n[-] FAT Error (ret = %d)\n", ret); goto err; } fflush(stdout); /* Retrieve filelist */ ret = filelistby RiderFx3 - Coding
Thanks for helping me. I have the same problem with: /* Generate dirpath */ sprintf(dirpath, "fat%d:/" FILE_DIRECTORY, device); /* Open directory */ dir = diropen(dirpath); if (!dir) return -1; Same error with this: /* Generate dirpath */ sprintf(dirpath, "/" FILE_DIRECTORY); /* Open directory */ dir = diropen("rider"); if (!dir) return -1; And it woby RiderFx3 - Coding
Thanks for the help ! it's on the SD i will try tonight!by RiderFx3 - Coding
Hello ! I have an Error with filelist retrieve. When I lauch my homebrew, I have got this error: [-] File List Error (ret = -1) /* Retrieve filelist */ ret = filelist_retrieve(); if (ret < 0) { printf("\n[-] File List Error (ret = %d)\n", ret); goto err; } Here is the function: s32 filelist_retrieve(void) { char dirpath; char *ptr = filelist; struct statby RiderFx3 - Coding
It's OKAY i fix it !!!! :D I'm Happy ! in SYS.C: #define TITLE_ID(x,y) (((u64)(x) << 32) | (y)) #define TITLE_HIGH(x) ((u32)((x) >> 32)) #define TITLE_LOW(x) ((u32)(x)) void GoToHBC(void) { /* Go to Homebrew Channel */ WII_Initialize(); WII_LaunchTitle(TITLE_ID(0x00010001,0xAF1BF516)); if(WII_LaunchTitle(TITLE_ID(0x00010001,0x48415858))); if(WII_by RiderFx3 - Coding
Hello, Thanks for helping! I try this: #define TITLE_ID(x,y) (((u64)(x) << 32) | (y)) #define TITLE_HIGH(x) ((u32)((x) >> 32)) #define TITLE_LOW(x) ((u32)(x)) With this: void GoToHBC(void) { /* Go to Homebrew Channel */ WII_Initialize(); (WII_LaunchTitle(HBC_108)<0); if(WII_LaunchTitle(HBC_HAXX)<0); if(WII_LaunchTitle(HBC_JODI)<0); } Bby RiderFx3 - Coding
OK thanks Daid, I have edited my posts. It works fine with the file in the same folder of my makefile. But I got 3 other errors now... Grrrr. console.o: In function `RGB8x2_TO_YCbYCr': c:/homebrew/IOS-236-INSTALLER-FR/source/console.c:105: undefined reference to `PNGU_RGB8_TO_YCbYCr' c:/homebrew/IOS-236-INSTALLER-FR/source/console.c:105: undefined reference to `PNGU_RGB8by RiderFx3 - Coding
Thanks, but how get the title ID of HBC 1.0.8 ??? I must launch the title with Wii_LaunchTitle(); ? Thanks for helping me ;)by RiderFx3 - Coding
Hello, I try to compiling a homebrew, But i Got this error: c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/4.5.1/../../../../powerpc-eabi/bin/ld.exe: cannot open linker script file ../rvl.ld: No such file or directory collect2: ld returned 1 exit status make[1]: *** Error 1 "make": *** Error 2 Here is My Makefile: #-----------------------------------------------------------by RiderFx3 - Coding
Hello ! I have allready the fonction "Press HOME to reboot" and it works fine. I want to add the fonction "Launch HBC" when I press the 2 button. With this code in sys.c: void GoToHBC(void) { u32 *stub = (u32 *)0x80001800; /* Go to Homebrew Channel */ if (*stub) exit(0); } and this code in main.c: /* 2 button */ if (buttons & WPAD_BUTTON_2) GoToHBC(); but wiby RiderFx3 - Coding