void action(const gcn::ActionEvent& actionEvent) { char tempPath[300]; strcpy(tempPath, prefs_get_attr ("rom_path")); strcpy(currentDir,tempPath); if (actionEvent.getSource() == button_main_rom) { run_menuLoad_guichan(currentDir, MENU_SELECT_MAIN_ROM); } if (actionEvent.getSource() == button_ext_rom) { run_menuLoad_guichan(currentDir, MENU_SELECT_EXT_ROM); } if (actionEvent.getSource() == button_key_rom) { run_menuLoad_guichan(currentDir, MENU_SELECT_KEY_ROM); } }
void action(const gcn::ActionEvent& actionEvent) { activateAfterClose = button_hdfile; run_menuLoad_guichan(currentDir, MENU_LOAD_HDF); }