#include #include #include #include #include #include #include #include #include #include static void *xfb = NULL; u32 first_frame = 1; GXRModeObj *rmode; void Initialise(); int main() { Initialise(); while(1) { s32 Size; s32 SSize; u32 ID; s32 getIDerr; s32 CARDerr; s32 EXIerr; VIDEO_ClearFrameBuffer(rmode, xfb, 0); // Can't use printf since Dolphin overrides it std::cout<<"\x1b[0;0H"; // Position the cursor (at 0, 0) for (int channel = 0; channel < EXI_CHANNEL_MAX; ++channel) for (int device = 0; device < EXI_DEVICE_MAX; ++device) { if (getIDerr = EXI_GetID(channel, device, &ID) == 1) { std::cout<<"Channel "<= 0) { std::cout<<"\tMemcard has a size of "<fbWidth,rmode->xfbHeight,rmode->fbWidth*VI_DISPLAY_PIX_SZ); // Set up the video registers with the chosen mode VIDEO_Configure(rmode); // Tell the video hardware where our display memory is VIDEO_SetNextFramebuffer(xfb); // Make the display visible VIDEO_SetBlack(FALSE); // Flush the video register changes to the hardware VIDEO_Flush(); // Wait for Video setup to complete VIDEO_WaitVSync(); if(rmode->viTVMode&VI_NON_INTERLACE) VIDEO_WaitVSync(); }