Example #1
0
std::string NetPlayDialog::FindGame()
{
    // find path for selected game, sloppy..
    for (u32 i = 0; auto game = m_game_list->GetISO(i); ++i)
        if (m_selected_game == BuildGameName(*game))
            return game->GetFileName();

    WxUtils::ShowErrorDialog(_("Game not found!"));
    return "";
}
Example #2
0
std::string NetPlayDiag::FindGame()
{
	// find path for selected game, sloppy..
	for (u32 i = 0 ; auto game = m_game_list->GetISO(i); ++i)
		if (m_selected_game == BuildGameName(*game))
			return game->GetFileName();

	PanicAlertT("Game not found!");
	return "";
}
Example #3
0
void NetPlayDialog::FillWithGameNames(wxListBox* game_lbox, const CGameListCtrl& game_list)
{
    for (u32 i = 0; auto game = game_list.GetISO(i); ++i)
        game_lbox->Append(StrToWxStr(BuildGameName(*game)));
}