Hi ! Next week the linux 3.9 kernel will hopefully be out, with the support of the F2FS file system. Is there any plan to port the library so that homebrew application can use, say, an usb pendrive formated with this new FS ?by TheDrev - Homebrew General
The riivolution patcher brings the possibilities to have new maps in severals games, including Mario kart Wii. Unfortunately the maps created, despite the effort and with the consideration of their homebrewness nature, are mostly unplayable. Does anyone want to try raising funds for the creation of professional maps as Battle for Wesnoth did for there fancy graphics ? In your opinionby TheDrev - Homebrew General
hi ! Is it possible to make an application that boot a game cube disc and allow to use the classic controler and load/save from an SD card ?by TheDrev - Ideas, requests
hi ! When creating a Makefile from a configure script shipped with a source code, and using --target powerpc-eabi It's check my computer configuration in /usr instead of the devkitpro toolchain one. I got to edit the resulting Makefile to remove missing library that was detected on my computer and change the CC variable and co to powerpc-eabi-gcc manually... can (and how) configure chby TheDrev - Coding
this looks sweet ! nice !by TheDrev - Homebrew Applications
Hey ! How to the TSCP chess engine had me ported in this chess application since it uses the ftime function in the original code // get_ms() returns the milliseconds elapsed since midnight, // January 1, 1970. #include BOOL ftime_ok = FALSE; // does ftime return milliseconds? int get_ms() { struct timeb timebuffer; ftime(&timebuffer); if (timebuffer.millitm != 0) ftby TheDrev - Homebrew Applications
so LWP is the devkitpro internal thread, I thought it was a perl module for web ;) actually it was not working because this wrapper don't have pthread_join and pthread_exitby TheDrev - Coding
Hi, the pthread header at seems bogus (error at video.h:88 and not definied variables) plus, the latest devkitPPC contains no pthread in his include directory (powerpc-eabi/include and libogc neither) so pthread fixed or naot ?by TheDrev - Coding
Hi, is there a port of GNU libintl for internationalisation ? I see in snesGX source that the lang directory contains .lang file similar to .po (with message id and translations), do gettext has been ported alderly ?by TheDrev - Coding
Hi, I'd like to rename the Makefile to Makefile.wii or whatever but I got errors... ScroogeMcDuck@moon /e/Documents $ make -f Makefile.wii make[1]: /e/Documents/ Makefile: No such file or directory make[1]: *** No rule to make target `/e/Documents smb_v2/Makefile'. Stop. make: *** Error 2 Edit : Just rename the @make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefiby TheDrev - Coding
Thanks, I've buy the one at amazone, the only place I saw this game... there was 8 yesterday and 4 now. It's strange that Lego Indiana Jones is so difficulte to find, come on it's not that old, and there are plenty of XBOX 360 and PS3 versions in stores and older games. @Arikado how do you figured that ?by TheDrev - Offtopic
Hi there. I think everyone noticed that Lego Indiana 1 is out of stock, Why do I say that, not for begging a lego game or complain on my stupudity of updating my wii, but to mention that's the first time that a game is sold so much because of ... awsome graphics ? neat gameplay ? No ! because of a programming flow :/ or maybe it has been forbid by nintendo (which is sad too, I used to playby TheDrev - Offtopic
I don't know where you read that, but I think it's mostly better to use return, expecially from main. + You can control the execution flow cleanup before quit: free pointers and close files for example + Ansi C main signature is int main(int argc, char** argv), it MUST return the application status Use exit and a atexit callback function when you can't do so (fatal error) orby TheDrev - Coding
I've solve the problem by only disabling the left and right shift character with if ( (event.type == KEYBOARD_PRESSED) && (event.symbol != 61697) && (event.symbol != 61698) ) { _keyBuffer.buf[_keyBuffer.tail] = event.symbol; _keyBuffer.tail++; } I'll release a little demo of text based adventure game very soon and I'll be interrested to have some feedby TheDrev - Coding
I'v recompiled the libwiikeyboard with this modification, and this had solved the MAJ key problem. Unfortunatly, With scanf or fgets I am using the AltGr key to 'submit' the input (the Return key do not submit, only add the scan code 13), so I am using : char cur_input; for(i=0; i <= BUFFER_SIZE; i++) { cur_input = getc(stdin); if(cur_input != 13){ cmdby TheDrev - Coding
thanks, that helps a lot. I wonder how scanf on GNU/libc or Windows' stdlib handle scanfs space key in the console. My last problem is that the MAJ key put a Start of Header (http://en.wikipedia.org/wiki/C0_and_C1_control_codes, scan code 0x01, label SOH) character in the input buffer. As I said the putchar used in keyPress_cb are simply here for echos to screen but the char is in the sby TheDrev - Coding
Thanks for your response, I alderly did that, the scan code is the good ASCII one. I figured out that when using scanf, the spae, and tab keys 'break' the scanf. Even if the keycode is not used in the callback function (the putchar is only for the display). The 'problem' is that inputs are in raw mode, it's good because it's a low level library, but still a paby TheDrev - Coding
Hi, I'm using libwiikeyboard like in I've replace getchar with a scanf if (KEYBOARD_Init(keyPress_cb) == 0) printf("keyboard initialised\n"); char cmd[32]; do { // Call WPAD_ScanPads each loop, this reads the latest controller states WPAD_ScanPads(); // WPAD_ButtonsDown tells us which buttons were pressed in this loop // this is a "one shot" state which willby TheDrev - Coding
I did not know that such init needed to be done.. I've take some code from example and now it works ! Thanks a lot ! I guess that without this init, some random characters are passed to the input buffer.... ? Edit : With the I cannot use space, which behave like a return and backspace which does noting. I guess this is a problem with the keyboard callback function, I check tby TheDrev - Coding
I can't do a simple scanf ?! in the example/wii/template/source/template.c I've added after the hello world! : printf("Hello World!"); char cmd[32]; scanf("%s", cmd); printf("you said -> %s\n", cmd); the scanf don't wait the user input and the program continue... It's the same with gets or fgets the output is you said -> Ç? (? is the marsby TheDrev - Coding
Thanks a lot, it worked with both ogg and mp3.by TheDrev - Coding
I'll try this out; The code in the SDL wii source is /**************************************************************************** * Audio Threading ***************************************************************************/ static void * AudioThread (void *arg) { while (1) { if(stopaudio) break; whichab ^= 1; memset(dma_buffers, 0, sizeof(dma_buffers[0])by TheDrev - Coding
I got a crash while playing a mp3 with SDL_Audio Line 93 of "src/audio/wii/SDL_wiiaudio.c" starts at address 0x801879d4 and ends at 0x801879e0 . I init Audio like that : Mix_OpenAudio(44100, AUDIO_S16, 2, 1024); Any ideas ?by TheDrev - Coding
Right, the problem was a defectuous stack that crashed randomly.by TheDrev - Coding
Hi, In theory, when a seg fault is raised and the core dump is displayed on screen, could it be possible to generate a full core dump on the SD to watch local variables and backtrace the stack without a usb gekko ?by TheDrev - Ideas, requests
Hi, Since I upgraded to devkitPPC r21 I figured out that any asignment from an enum element (from 0 to N) to an unsigned int causes a crash. is such operation is allowed by ANSI C ? It works with gcc for PC/x86, and previous version of devkitPPC, why not now since the enum I used was > 0 ?by TheDrev - Coding
Thanks that's what I was looking for. I swear that if that works I'll post a working example on the SDL page :Dby TheDrev - Coding
With the late version on the svn it's seems that it is possible (see the sdl page on wiki), but I only succeed with the analog pad of the classic controler. (event of type SDL_JOYAXISMOTION) I wonder if anyone have made the wiimote or classic + pad works without the libogc wiimote interface (wich I'll use if sdl input don't works)by TheDrev - Coding
Hi ! for Hat event I use if( event->type == SDL_JOYHATMOTION){ if ( event->jhat.hat & SDL_HAT_UP ) { // GNA ! } else if ( event->jhat.hat & SDL_HAT_RIGHTDOWN ) { // MU ? } } I just need a little example that uses for some test.by TheDrev - Coding