examples/sokol/atom.c
/* get atom_desc_t struct based on joystick type and atommc configuration*/
get atom_desc_t struct based on joystick type and atommc configuration
get atom_desc_t struct based on joystick type and atommc configuration
atom_desc_t atom_desc(atom_joystick_type_t joy_type, bool atommc_enabled, bool atommc_autoboot) {
    return (atom_desc_t) {
        .joystick_type = joy_type,
        .audio_cb = push_audio,
        .audio_sample_rate = saudio_sample_rate(),
        .pixel_buffer = gfx_framebuffer(),
        .pixel_buffer_size = gfx_framebuffer_size(),
        .rom_abasic = atommc_enabled ? dump_abasic_patched_ic20 : dump_abasic_ic20,
        .rom_abasic_size = sizeof(dump_abasic_ic20),
        .rom_afloat = dump_afloat_ic21,
        .rom_afloat_size = sizeof(dump_afloat_ic21),
        .rom_dosrom = atommc_enabled ? dump_atommc3_u15 : dump_dosrom_u15,
        .rom_dosrom_size = sizeof(dump_dosrom_u15),
        .atommc_enabled = atommc_enabled,
        .atommc_autoboot = atommc_autoboot,
    };
}
atom_desc_t atom_desc ( atom_joystick_type_t joy_type , bool atommc_enabled , bool atommc_autoboot ) { return ( atom_desc_t ) { . joystick_type = joy_type , . audio_cb = push_audio , . audio_sample_rate = saudio_sample_rate ( ) , . pixel_buffer = gfx_framebuffer ( ) , . pixel_buffer_size = gfx_framebuffer_size ( ) , . rom_abasic = atommc_enabled ? dump_abasic_patched_ic20 : dump_abasic_ic20 , . rom_abasic_size = sizeof ( dump_abasic_ic20 ) , . rom_afloat = dump_afloat_ic21 , . rom_afloat_size = sizeof ( dump_afloat_ic21 ) , . rom_dosrom = atommc_enabled ? dump_atommc3_u15 : dump_dosrom_u15 , . rom_dosrom_size = sizeof ( dump_dosrom_u15 ) , . atommc_enabled = atommc_enabled , . atommc_autoboot = atommc_autoboot , } ; }
get atom_desc_t struct based on joystick type and atommc configuration
get atom_desc_t struct based on joystick type and atommc configuration