| Line 759... |
Line 759... |
| 759 |
if ( backgroundWorker2->CancellationPending )
|
759 |
if ( backgroundWorker2->CancellationPending )
|
| 760 |
return;
|
760 |
return;
|
| 761 |
|
761 |
|
| 762 |
System::String ^dir = System::IO::FileInfo(System::Windows::Forms::Application::ExecutablePath).DirectoryName;
|
762 |
System::String ^dir = System::IO::FileInfo(System::Windows::Forms::Application::ExecutablePath).DirectoryName;
|
| 763 |
dir += "\\Downloads";
|
763 |
dir += "\\Downloads";
|
| 764 |
String ^file = dir + "\\" + SystemStringFromCyString(CFileIO(CyStringFromSystemString(m_pCurrentItem->SubItems[5]->Text)).GetFilename().Remove('\r').Remove(9));
|
764 |
String ^file = dir + "\\" + _US(CFileIO(_S(m_pCurrentItem->SubItems[5]->Text)).filename().remove('\r').remove(9));
|
| 765 |
|
765 |
|
| 766 |
__int64 maxSize = res->ContentLength;
|
766 |
__int64 maxSize = res->ContentLength;
|
| 767 |
__int64 curSize = 0;
|
767 |
__int64 curSize = 0;
|
| 768 |
|
768 |
|
| 769 |
System::IO::FileStream ^writeStream = nullptr;
|
769 |
System::IO::FileStream ^writeStream = nullptr;
|
| Line 836... |
Line 836... |
| 836 |
}
|
836 |
}
|
| 837 |
else
|
837 |
else
|
| 838 |
{
|
838 |
{
|
| 839 |
System::String ^dir = System::IO::FileInfo(System::Windows::Forms::Application::ExecutablePath).DirectoryName;
|
839 |
System::String ^dir = System::IO::FileInfo(System::Windows::Forms::Application::ExecutablePath).DirectoryName;
|
| 840 |
dir += "\\Downloads";
|
840 |
dir += "\\Downloads";
|
| 841 |
String ^file = dir + "\\" + SystemStringFromCyString(CFileIO(CyStringFromSystemString(m_pCurrentItem->SubItems[5]->Text)).GetFilename().Remove('\r').Remove(9));
|
841 |
String ^file = dir + "\\" + _US(CFileIO(_S(m_pCurrentItem->SubItems[5]->Text)).filename().remove('\r').remove(9));
|
| 842 |
|
842 |
|
| 843 |
if ( IO::File::Exists(file) )
|
843 |
if ( IO::File::Exists(file) )
|
| 844 |
{
|
844 |
{
|
| 845 |
m_pCurrentItem->SubItems[3]->Text = "Ready to Install";
|
845 |
m_pCurrentItem->SubItems[3]->Text = "Ready to Install";
|
| 846 |
m_pCurrentItem->SubItems[5]->Text = file;
|
846 |
m_pCurrentItem->SubItems[5]->Text = file;
|