BOOL Dlg_GameLibrary::LaunchSelected()
{
	HWND hList = GetDlgItem(m_hDialogBox, IDC_RA_LBX_GAMELIST);
	const int nSel = ListView_GetSelectionMark(hList);
	if (nSel != -1)
	{
		TCHAR buffer[1024];
		ListView_GetItemText(hList, nSel, 1, buffer, 1024);
		SetWindowText(GetDlgItem(m_hDialogBox, IDC_RA_GLIB_NAME), buffer);

		ListView_GetItemText(hList, nSel, 3, buffer, 1024);
		_RA_LoadROM(Narrow(buffer).c_str());

		return TRUE;
	}
	else
	{
		return FALSE;
	}
}
示例#2
0
void RA_LoadROM( const char* sFullPath )
{
	if( _RA_LoadROM != NULL )
		_RA_LoadROM( sFullPath );
}