diff --git a/README.TXT b/README.TXT index 4cc5630..3ad0740 100644 --- a/README.TXT +++ b/README.TXT @@ -48,6 +48,7 @@ ChangeLog : * added GRRLIB_LoadTextureJPG (thx crayon for the file end detection idea) +* InitVideo() and GRRLIB_Start() merge into GRRLIB_Init(). have a look at the sample code to see how all this work ;) diff --git a/template/source/GRRLIB/GRRLIB.c b/template/source/GRRLIB/GRRLIB.c index 057c7cc..ff6984a 100644 --- a/template/source/GRRLIB/GRRLIB.c +++ b/template/source/GRRLIB/GRRLIB.c @@ -6,7 +6,6 @@ ===========================================*/ #include #include -#include #include #include #include diff --git a/template/source/main.c b/template/source/main.c index 7897770..1bc6c06 100644 --- a/template/source/main.c +++ b/template/source/main.c @@ -21,9 +21,10 @@ Mtx GXmodelView2D; -int main(){ +int main() { int left = 0; ir_t ir1; + u32 wpaddown, wpadheld; GRRLIB_Init(); @@ -49,8 +50,8 @@ int main(){ while(1){ WPAD_SetVRes(0, 640, 480); WPAD_ScanPads(); - u32 wpaddown = WPAD_ButtonsDown(0); - u32 wpadheld = WPAD_ButtonsHeld(0); + wpaddown = WPAD_ButtonsDown(0); + wpadheld = WPAD_ButtonsHeld(0); WPAD_IR(WPAD_CHAN_0, &ir1);