/* C64-specific resource initialization. This is called before initializing the machine itself with `machine_init()'. */ int machine_resources_init(void) { if (traps_resources_init() < 0 || vsync_resources_init() < 0 || machine_video_resources_init() < 0 || c64_resources_init() < 0 || c64export_resources_init() < 0 || reu_resources_init() < 0 || georam_resources_init() < 0 || ramcart_resources_init() < 0 || plus60k_resources_init() < 0 || plus256k_resources_init() < 0 || c64_256k_resources_init() < 0 || mmc64_resources_init() < 0 || digimax_resources_init() < 0 #ifdef HAVE_TFE || tfe_resources_init() < 0 #endif || vicii_resources_init() < 0 || sound_resources_init() < 0 || sid_resources_init() < 0 || acia1_resources_init() < 0 || acia1_mode_resources_init() < 0 || rs232drv_resources_init() < 0 || rsuser_resources_init() < 0 || serial_resources_init() < 0 || printer_resources_init() < 0 #ifdef HAVE_MOUSE || mouse_resources_init() < 0 #endif #ifndef COMMON_KBD || kbd_resources_init() < 0 #endif || drive_resources_init() < 0 || datasette_resources_init() < 0 || cartridge_resources_init() < 0 ) return -1; if (vsid_mode && psid_init_resources() < 0) return -1; return 0; }
int cartridge_resources_init(void) { if (resources_register_int(resources_int) < 0 || resources_register_string(resources_string) < 0 || generic_resources_init() < 0 || finalexpansion_resources_init() < 0 || vic_fp_resources_init() < 0 || megacart_resources_init() < 0 #ifdef HAVE_TFE || tfe_resources_init() < 0 #endif || aciacart_resources_init() < 0 || digimax_resources_init() < 0 || sfx_soundexpander_resources_init() < 0 || sfx_soundsampler_resources_init() < 0 || georam_resources_init() < 0) { return -1; } return 0; }