static unsigned getFreeBlocks(void) { #ifdef DREAMCAST unsigned short buf16[255]; int free_blocks=0,i=0; maple_device_t *dev; unsigned char addr=0; int p,u; uint8 v=maple_first_vmu(); if (v) { if (maple_compat_resolve(v,&dev,MAPLE_FUNC_MEMCARD)!=0) return 0; } else return 0; return vmufs_free_blocks(dev); #else return 0x10000; #endif }
/* Function to get the device-dependent name of a joystick */ const char *SDL_SYS_JoystickName(int index) { maple_device_t *dev; if (maple_compat_resolve(SYS_Joystick_addr[index],&dev,MAPLE_FUNC_CONTROLLER)!=0) return NULL; return dev->info.product_name; }