You are not logged in.

#1 2009-11-27 21:11:55

michelinux
Member

[RESOLVED] GRRLIB_ScrShot freezes my wii

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

 

#2 2009-11-27 21:28:11

Crayon
Bad Mother Fucker

Re: [RESOLVED] GRRLIB_ScrShot freezes my wii

Hi, I'm using it like that without any problem:

Code:

        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:

Code:

#define TEXT_SIZE 100   /**< Maximum length of the text. */
//...
    wchar_t text[TEXT_SIZE];

Could you paste some code.

Offline

 

#3 2009-11-28 15:14:27

michelinux
Member

Re: [RESOLVED] GRRLIB_ScrShot freezes my wii

Well, it's just 3 lines:

Code:

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

 

#4 2009-11-28 15:49:13

Crayon
Bad Mother Fucker

Re: [RESOLVED] GRRLIB_ScrShot freezes my wii

Try to put the full path: "sd:/Screenshot.png"

Offline

 

#5 2009-12-01 20:26:36

michelinux
Member

Re: [RESOLVED] GRRLIB_ScrShot freezes my wii

Sorry, my fault: I should have known you cannot use new precompiled libfat with old devkitPPC...

There's no donkey smile on this forum? smile

Offline

 

Board footer

Powered by FluxBB