Subversion Repositories spk

Rev

Rev 118 | Rev 158 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 118 Rev 125
Line 676... Line 676...
676
			for ( int i = 1; i < p.GetGameExe()->GetNumGames(); i++ )
676
			for ( int i = 1; i < p.GetGameExe()->GetNumGames(); i++ )
677
			{
677
			{
678
				SGameExe *exe = p.GetGameExe()->GetGame(i);
678
				SGameExe *exe = p.GetGameExe()->GetGame(i);
679
				if ( !m_pDirList->FindData(CyString::Number(i)) )
679
				if ( !m_pDirList->FindData(CyString::Number(i)) )
680
				{
680
				{
681
					if ( MessageBox::Show(this, "You have no directories set for " + SystemStringFromCyString(exe->sName) + "\n\nWould you like to set it now?", "Game Directory", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == System::Windows::Forms::DialogResult::Yes )
681
					if ( MessageBox::Show(this, "You have no directories set for " + _US(exe->sName) + "\n\nWould you like to set it now?", "Game Directory", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == System::Windows::Forms::DialogResult::Yes )
682
					{
682
					{
683
						FolderBrowserDialog ^fbd = gcnew FolderBrowserDialog;
683
						FolderBrowserDialog ^fbd = gcnew FolderBrowserDialog;
684
						fbd->Description = "Select the path for " + SystemStringFromCyString(exe->sName);
684
						fbd->Description = "Select the path for " + _US(exe->sName);
685
						if ( fbd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
685
						if ( fbd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
686
						{
686
						{
687
							CDirIO Dir(CyStringFromSystemString(fbd->SelectedPath));
687
							CDirIO Dir(_S(fbd->SelectedPath));
688
							if ( !Dir.Exists(exe->sExe) )
688
							if ( !Dir.exists(exe->sExe) )
689
								MessageBox::Show(this, "Unable to find " + SystemStringFromCyString(exe->sExe) + " in " + fbd->SelectedPath, "Game Directory", MessageBoxButtons::OK, MessageBoxIcon::Warning);
689
								MessageBox::Show(this, "Unable to find " + SystemStringFromCyString(exe->sExe) + " in " + fbd->SelectedPath, "Game Directory", MessageBoxButtons::OK, MessageBoxIcon::Warning);
690
							else
690
							else
691
								m_pDirList->PushBack(CyStringFromSystemString(fbd->SelectedPath), CyString::Number(i));
691
								m_pDirList->PushBack(CyStringFromSystemString(fbd->SelectedPath), CyString::Number(i));
692
						}
692
						}
693
					}
693
					}