so if you just do main() with a loop like int pune=0; while (1) { initSdCard(); closeSdcard(); blablabla = malloc(); if(!blablabla)break; free(blablabla); printf("."); pune++; } printf("\nthere is no memory left after %d sd card inits", pune); you are saying that eventually the loop will break and it will be out of memory?by giantpune - Coding
and you would need to find a way to get all 6*24 notes that a guitar can make, as well as all the possible chords and variations and inversions of those chords with the 5 buttons and 1 "string" on the plastic guitar.by giantpune - Ideas, requests
the file renaming part is easy. but if you want to preview the images and sounds, you will need to get down and dirty.by giantpune - Ideas, requests
its not necessary. but if you dont have older versions of libs, you cant compile older apps. try to compile a new version of snes9x with an older libogc. or and older version with a newer libogc. it wont work. you must be using the same (or close to it) libs that the original author was using. its either that, or rewrite each app to work with the one kit you put together.by giantpune - Coding
you dont have to stick with 1 version of each library by any means. but you have to make sure that your libs are compatible with each other. just the same that you cant fix a japanese car with american socket set. you cant have a lib expecting to find "u8 variableName..." in libogc but it turns out that they changed that to "bool variableName..." in an update, and in a previous version they dby giantpune - Coding
i had those errors when i used a older version of mxml lib with the latest devkit and libogc. either update the mxml lib or downgrade to a older version of devkit/libogc and it should be fine.by giantpune - Coding
you dont need to overwrite ANY ios to use homebrew. the only reason to mess with any IOS it to add to it abilities that it wasnt created with. the biggest reasons people hack up IOSes is to restore the trucha bug and from there play games they didnt pay for. you can use bannerbomb to install the homebrew channel and from there play all the homebrew games fine with whatever stock IOS you are usby giantpune - Ideas, requests
since you are checking the version and revision AFTER you load the ios, you can just say IOS_ReloadIOS(35); printf("IOS: %d (v%d)",IOS_GetVersion(), IOS_GetRevision()); you only need to use the signed blobs and ES calls if you want to check a IOS version and what not BEFORE you load it.by giantpune - Coding
try this #define RESET 0 #define BRIGHT 1 #define DIM 2 #define UNDERLINE 3 #define BLINK 4 #define REVERSE 7 #define HIDDEN 8 #define BLACK 0 #define RED 1 #define GREEN 2 #define YELLOW 3 #define BLUE 4 #define MAGENTA 5 #define CYAN 6 #define WHITE 7 where attr is the attribute from the first set, fg is text color, and bg is conlose color printf("%cby giantpune - Coding
the errors dont have any specific error with a message to what caused it at all. its just 3 errors. also im not using the string class. the whole code is plain jane c. its just a few char and sprintf()by giantpune - Coding
void gprintf( const char *str, ... ) { if (!(geckoinit))return; char astr[4096]; va_list ap; va_start(ap,str); vsprintf( astr, str, ap ); va_end(ap); usb_sendbuffer_safe( 1, astr, strlen(astr) ); }by giantpune - Coding
i get errors when using this code. i have a little program i use to rename the devkit and libogc folders on by machine so i can use different versions for different projects. it runs fine without any errors usually. but simply compiling it with your files makes it spit out errors. the only thing the program does is check for folders and rename them and somehow it makes 3 errors. i admit thby giantpune - Coding
something must be messed up in your version then. i just tested out something else based off patchmii and it works right. i installed the same IOS 2 times in a row. the first time it tries to get the stuff off the sd card and it isnt there so is calls up NUS and places an order, downloads it, saves to the sd card, and installs to the nand. the second time i run the dol to install said IOS,by giantpune - Ideas, requests
i havent used DOPIOS, but since it uses patchmii, doesnt it have the useSD variable? where it creates the 00000001 folder on the SD card and saves all the data there. and later when you are trying to use that same title, it looks on the SD and if not found, it gets it from NUS.by giantpune - Ideas, requests
did you bother to read the code? i already adjusted the code for the gamebox sizes for GBA and NES. it is there and just commented out. all you really need to do is make a diff/patch of the snes9x version, apply the patch to the GBA or NES version, change the comment to use the correct numbers for whatever boxes you have and thats it. there may be some minor compile errors to fix, but all thby giantpune - Ideas, requests
looks useful. any chance of a english version? i follow most of it, but im sure if i could understand the comments, it would be more useful.by giantpune - Coding
have you tried insight? it can debug and show memory and registers. you need a USB gecko or to use the wifi patch for libogc to allow it to connect to your wii while the app is running. eclipse can also debug using the same methods, but idk if it lets you access registers and whatnot. also if you have a USB gecko, you can load the geckoOS code handler into memory and then start your dol. aby giantpune - Coding
for debugging, i use a few different ways. if i have a code dump that i want to find the line of code to match, just use powerpc-gekko-addr2line -e "elf file" "address" #without quotes or in gdb symbol-file "elf file" gdb info line "address" in the terminal. it also works fine in the cmd in windows. and make sure you should use the elf and not the dol. if i want to do a bit moreby giantpune - Coding
just a thought, but you can do what xyzzy does. install a IOS you want to use into a unused IOS slot, reboot into it, do what you want to do, and then delete that IOS. it would probably involve a bit of messing around, but it can be done this way.by giantpune - Coding
so I dont see an answer to the OP's question. and i have the same one. what must i do to be able to compile source code into a .elf that mini can run? i already have the full devkit setup. are there anything else needed to install? and do i need to declare a different environmental variable? or maybe a quick start guide posted anywhere would be great. EDIT>>> ok. i found mby giantpune - Coding
QuoteAllRightwhat would the code be to say, add the line "test", at the end of the file do you mean just add "\ntest" to the end of an existing file? if so, just open it with append. something like this FILE* fp; fp = fopen("sd:/thefile.ini", "a"); //"a" is for append fprintf(fp,"\ntest"); fclose(fp);by giantpune - Coding
I am wondering if there is a way to access the front LED of the wii. You know, the one that is on the power button and changes from red to yellow to green. I use a USB Gecko for debugging, but sometimes I have people without a gecko to test stuff out. Rather than to write information on the screen, sometimes I use the slot light simply because it is less coding and doesn't require any vidby giantpune - Coding
i read the stuff from bushing saying that HBC stopped adding stuff to the messageboard in the wii, but looking through mine i have several entried for homebrew channel. and this wii has only had the 2 most recent versions of HBC on it. so either they put back in the logging stuff, or the system menu is doing it for them.by giantpune - Homebrew General
ive even cheated and used the wii memory below the entrypoint of an app to leave instructions for it. for (almost) all homebrew, it must start after the space that is allotted for the HBC stub. this means that if you know what is in the memory there, you can overwrite it with 1 app with some instructions and then boot another app. then the second app can read the instructions and then replaceby giantpune - Ideas, requests
didn't somebody already do this? and the sell it as a game? and call it monopoly?by giantpune - Ideas, requests
do you have any other threads running at the same time?by giantpune - Coding
i think theres a metaxml in the googlecode checkout already. what zip archive are you talking about? and where at is this on brawlplus.net? i tried to sign up there but the form spitout some crazy crap at me.by giantpune - Ideas, requests
usually you want to have the gui exit at the same place. just make it exit from the switch in the end of menu.cpp and after that start the dvd or whatever. if you want to use exitguithreads() in any file besides menu.cpp just make sure to put it in menu.h and include menu.h in the file you want to use it. also make sure it isn't set to static. and probably declare the exitrequest variableby giantpune - Coding
it would help to see the rest of the code. but this is almost exactly the same as how i exit libwiigui. i think you are forgetting to exit the gui thread though. im not sure how you have everything set up, but I have this ExitGUIThreads(); while(ExitRequested != 2) usleep(THREAD_SLEEP); right before stopping the bg music you can check out my source for it ps. check your PMby giantpune - Coding