Subversion Repositories spk

Rev

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

Rev 50 Rev 52
Line 176... Line 176...
176
	void MainGui::UpdateRunButton()
176
	void MainGui::UpdateRunButton()
177
	{
177
	{
178
		ButRun->Text = "Run: " + SystemStringFromCyString(m_pPackages->GetGameName());
178
		ButRun->Text = "Run: " + SystemStringFromCyString(m_pPackages->GetGameName());
179
		
179
		
180
		CyString exe = m_pPackages->GetGameExe()->GetGameRunExe(m_pPackages->GetCurrentDirectory());
180
		CyString exe = m_pPackages->GetGameExe()->GetGameRunExe(m_pPackages->GetCurrentDirectory());
181
		if ( CFileIO(exe).Exists() )
181
		if ( CFileIO(exe).ExistsOld() )
182
		{
182
		{
183
			exe = exe.FindReplace("/", "\\");
183
			exe = exe.FindReplace("/", "\\");
184
			wchar_t wText[200];
184
			wchar_t wText[200];
185
			::MultiByteToWideChar(CP_ACP, NULL, (char *)exe.c_str(), -1, wText, exe.Length() + 1);
185
			::MultiByteToWideChar(CP_ACP, NULL, (char *)exe.c_str(), -1, wText, exe.Length() + 1);
186
 
186