loading from USB storage devices? May 22, 2010 04:22PM | Registered: 15 years ago Posts: 26 |
bool done = false; #include#include #include #include SDL_Surface *screen = NULL; SDL_Surface *sprite = NULL; void apply_surface( int x, int y, SDL_Surface* source, SDL_Surface* destination, SDL_Rect* clip = NULL ){ SDL_Rect offset;offset.x = x; offset.y = y; SDL_BlitSurface( source, clip, destination, &offset ); } int main(int argc, char* argv[]){ SDL_Init(SDL_INIT_EVERYTHING); screen = SDL_SetVideoMode(640,480,16,SDL_DOUBLEBUF); sprite = IMG_Load("testimg.png"); while(!done){ apply_surface(50,50,sprite,screen,NULL); SDL_Flip(screen); WPAD_ScanPads(); if(WPAD_ButtonsDown(WPAD_CHAN_0) & WPAD_BUTTON_A)done=1; } return 0; }
Re: loading from USB storage devices? May 22, 2010 05:47PM | Moderator Registered: 16 years ago Posts: 441 |
Re: loading from USB storage devices? May 23, 2010 05:16AM | Registered: 15 years ago Posts: 26 |
Re: loading from USB storage devices? May 23, 2010 06:00AM | Registered: 15 years ago Posts: 26 |
Re: loading from USB storage devices? May 23, 2010 06:52AM | Registered: 15 years ago Posts: 444 |
Re: loading from USB storage devices? May 23, 2010 07:31AM | Moderator Registered: 15 years ago Posts: 703 |
Re: loading from USB storage devices? May 23, 2010 08:06AM | Registered: 15 years ago Posts: 26 |
Quote
g_man
Try formating your usb drive, It think that might be the problem. But before you do make sure to backup all of your files.
You should also try another usb device, The problem could also be that the wii doesn't like your usb.
Quote
scanff
What version of devkitpro/libogc are you using ?
Re: loading from USB storage devices? May 23, 2010 09:18AM | Moderator Registered: 15 years ago Posts: 703 |
Re: loading from USB storage devices? May 23, 2010 10:13AM | Registered: 15 years ago Posts: 26 |
Quote
scanff
Here's an idea, may sound stupid but have you done a clean build since updating devkitpro/ogc. I've noticed sometimes if you replace libraries and don't do a full build it's still got the old one linked in the object files.
Re: loading from USB storage devices? May 23, 2010 10:47AM | Registered: 15 years ago Posts: 26 |
Re: loading from USB storage devices? May 24, 2010 12:45PM | Registered: 15 years ago Posts: 26 |
Re: loading from USB storage devices? May 24, 2010 06:57PM | Moderator Registered: 16 years ago Posts: 441 |
Re: loading from USB storage devices? May 25, 2010 04:14AM | Registered: 14 years ago Posts: 12 |