You are not logged in.
Hi guys,
I'm trying to add screenshot feature to my homebrews but calling GRRLIB_ScrShot completely freezes my wii (I have to unplug power).
After that I find a 0 byte file with the name I choose.
Any ideas?
I'm using GRRLIB 4.1.1 and I have latest libfat
Thank you in advance
Last edited by michelinux (2009-11-27 21:13:50)
Offline
Hi, I'm using it like that without any problem:
if(GRRLIB_ScrShot("sd:/Screenshot.png")) wcsncpy(text, L"A screenshot was taken!!!", TEXT_SIZE); else wcsncpy(text, L"Screenshot did not work!!!", TEXT_SIZE);
From my .h file:
#define TEXT_SIZE 100 /**< Maximum length of the text. */ //... wchar_t text[TEXT_SIZE];
Could you paste some code.
Offline
Well, it's just 3 lines:
diff -Naur flying_saucers/source/main.c flying_saucers_previous/source/main.c --- flying_saucers/source/main.c 2009-11-28 13:16:44.000000000 +0100 +++ flying_saucers_previous/source/main.c 2009-11-28 13:18:44.000000000 +0100 @@ -63,9 +63,6 @@ if (pressed[i] & WPAD_BUTTON_HOME || quitting != -1) { quit(); } - if (pressed[i] & WPAD_BUTTON_MINUS) { - GRRLIB_ScrShot("Screenshot.png"); - } } else { wd[i]= NULL; pressed[i]= 0;
If I remove SD 30 seconds after freeze I get a core dump... gdb tells me:
No line number information available for address 0x800782d0 <memcpy+48>
Offline
Try to put the full path: "sd:/Screenshot.png"
Offline
Sorry, my fault: I should have known you cannot use new precompiled libfat with old devkitPPC...
There's no donkey smile on this forum?
Offline