Quotescarter11Anyone have any ideas on a way to convert data.nunchuk.js.pos.x to a screen x value? I'm assuming the range of values for data.js.pos.x is different than the screen x coordinate range. I haven't had a chance to confirm that. Assuming that js is data.nunchuk.js: screen_x=(js.pos.x-js.min.x)*screen_w/(js.max.x-js.min.x) and same for y: screen_y=(js.pos.y-js.min.y)*scrby Dande - Coding
Quoteg_man ... strcpy(path, appdir); //Copy SD:/apps to path puts("2222222222222"); sleep(1); strcat(path,appnames); //add the app name to the end of path puts("3333333333333"); sleep(1); if(opendir(path)){ //If the folder exists ... path-variable contains full path to application and you're trying to use it as a directory. It's only natural that opendir can'by Dande - Coding
Quoteg_manOk, this should hopefully be my last error. When i try to save the names of the directories, it doesn't work. AKA what is wrong with this statement appnames = (ep->d_name); This code right before it works puts(ep->d_name); thanks You now only store the char-pointer, not the actual string. Maybe you would like use strcopy to copy the actual name. I think the problem isby Dande - Coding
Quoteg_manEDIT2: Ok I have a problem, which i belive to be caused by this line if((ep->d_name == "boot.dol") || (ep->d_name == "boot.elf")) gcc gives me a warning warning: comparison with string literal results in unspecified behaviour Well you can't just compare two string literals that way (or yes you can, but you can't know what it does as the warning says). You shouby Dande - Coding
Well now I gave it a try and I were able to compile it (current sdl-wii needed more libs to linked than the one this one used originally) but it gives me a codedump when I try to boot it. I think I'm not going to get deeper into this either.by Dande - Homebrew Applications
In libogc svn the Vector has been renamed to guVector and thus you're unable to compile current svn of sdl-wii with svn of libogc. I hope someone could apply this patch to sdl-wii which just renames Vectors to guVectors: SDL_fix.patch:Index: SDL/src/video/wii/SDL_wiivideo.c =================================================================== --- SDL/src/video/wii/SDL_wiivideo.c (revisiby Dande - Coding
I think you've named your file with .c-suffix and you're using the default makefile. Try to rename your file to end with .cpp-suffix, because makefile compiles only them with c++-compiler (If I remember right) Then you should also be able to use normal includesby Dande - Coding
I might try to recompile this once I get my new computer. My last one's motherboard is broken and new one hasn't come yet. If someone wants to do it before feel free, but I'm just telling that I can try this once I can.by Dande - Homebrew Applications
For your problem with wiiload. Did you stay in the home-menu (that screen where you can see your wii's ip address) when you send data? To HBC to recieve data from wiiload you have to be in application list (Which is most propably just empty window for you, if you don't have any applications) And for sd-card reading problem: You might use your digital camera as sd-reader. It most propby Dande - Homebrew Applications
Also try to take WiiConnect24 off. I had problem during beta 8 that HBC randomly connected succesfully. Turning WiiConnect24 off fixed it.by Dande - Homebrew Applications
Quotehenke37If you read the paths, it's quite obvious that there is a copy of libogc in the libfat folder. No it isn't obvious. Libfat has libogc directory which contains wii/gc specific stuff, nds directory which contains nds specific stuff and gba directory which contains gba specific stuff. And following path /home/jb/developer/src/libfat/libogc/../source/disc.h is exactly same as /hby Dande - Coding
But if it's just about little testing, the printf is good enough. The key for your problems is escape code: (following is direct quote from devkitpro's wii template// The console understands VT terminal escape codes // This positions the cursor on row 2, column 0 // we can use variables for this with format codes too // e.g. printf ("\x1b[%d;%dH", row, column ); printf("\x1b[2;0by Dande - Coding
Emukidid, I don't know whether you want to add this to your code, but here are the files I changed to add classic controller support. If you want to use it, you're free to do it. Makefile_wii GamecubeMain.c textFileBrowser.c PlugPAD.cby Dande - Homebrew Applications
Well I just checked out latest svn and compiled it (r57). I had to tweak source code a bit to support wiimote, because I don't have GamuCube controller. I tried FF 8 and it played very well. During FMVs the fps was around 35 and during normal gameplay fps was around 50-60. I didn't get to battle yet, because it was so annoying to move with only wiimote controls, so I'm going toby Dande - Homebrew Applications