Subversion Repositories spk

Rev

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

Rev 104 Rev 105
Line 506... Line 506...
506
							p.CloseDir();							
506
							p.CloseDir();							
507
						}
507
						}
508
					}
508
					}
509
 
509
 
510
					info->WorkingDirectory = dir;
510
					info->WorkingDirectory = dir;
-
 
511
					info->Arguments = "";
-
 
512
					if ( Advanced ) info->Arguments = "--advanced ";
511
					if ( gui->GetGameArgs() && gui->GetGameArgs()->Length )
513
					if ( gui->GetGameArgs() && gui->GetGameArgs()->Length )
512
						info->Arguments = "\"" + gui->GetRunFile() + "\" \"" + System::Windows::Forms::Application::ExecutablePath + "\" \"" + gui->GetGameArgs() + "\"";
514
						info->Arguments += "\"" + gui->GetRunFile() + "\" \"" + System::Windows::Forms::Application::ExecutablePath + "\" \"" + gui->GetGameArgs() + "\"";
513
					else
515
					else
514
						info->Arguments = "\"" + gui->GetRunFile() + "\" \"" + System::Windows::Forms::Application::ExecutablePath + "\"";
516
						info->Arguments += "\"" + gui->GetRunFile() + "\" \"" + System::Windows::Forms::Application::ExecutablePath + "\"";
515
					info->UseShellExecute = false;
517
					info->UseShellExecute = false;
516
					info->WindowStyle = System::Diagnostics::ProcessWindowStyle::Normal;
518
					info->WindowStyle = System::Diagnostics::ProcessWindowStyle::Normal;
517
					System::Diagnostics::Process ^process = System::Diagnostics::Process::Start(info);
519
					System::Diagnostics::Process ^process = System::Diagnostics::Process::Start(info);
518
				}
520
				}
519
			}
521
			}