Subversion Repositories spk

Rev

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

Rev 53 Rev 56
Line 175... Line 175...
175
 
175
 
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().ToString());
181
		if ( CFileIO(exe).ExistsOld() )
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);