def load_game(self): save_names = g.get_save_names() self.load_dialog.list = save_names index = dialog.call_dialog(self.load_dialog, self.menu_dialog) if 0 <= index < len(save_names): save = save_names[index] g.load_game(save) self.force_update() raise constants.ExitDialog, False
def load_game(self): save_names = g.get_save_names() self.load_dialog.list = save_names index = dialog.call_dialog(self.load_dialog, self) if 0 <= index < len(save_names): save = save_names[index] did_load = g.load_game(save) if did_load: dialog.call_dialog(self.map_screen, self)