| Line 161... |
Line 161... |
| 161 |
game = m_pPackage->FindFirstGameInPackage();
|
161 |
game = m_pPackage->FindFirstGameInPackage();
|
| 162 |
}
|
162 |
}
|
| 163 |
|
163 |
|
| 164 |
SaveFileDialog ^ofd = gcnew SaveFileDialog();
|
164 |
SaveFileDialog ^ofd = gcnew SaveFileDialog();
|
| 165 |
ofd->Filter = "Zip Archive (*.zip)|*.zip";
|
165 |
ofd->Filter = "Zip Archive (*.zip)|*.zip";
|
| 166 |
ofd->FileName = SystemStringFromCyString((CFileIO(m_pPackage->filename()).GetDir() + "/" + CFileIO(m_pPackage->filename()).GetBaseName() + "_" + CBaseFile::ConvertGameToString(game) + ".zip").FindReplace("/", "\\"));
|
166 |
ofd->FileName = SystemStringFromCyString((CFileIO(m_pPackage->filename()).GetDir() + "/" + CFileIO(m_pPackage->filename()).baseName() + "_" + CBaseFile::ConvertGameToString(game) + ".zip").FindReplace("/", "\\"));
|
| 167 |
ofd->FilterIndex = 1;
|
167 |
ofd->FilterIndex = 1;
|
| 168 |
ofd->RestoreDirectory = true;
|
168 |
ofd->RestoreDirectory = true;
|
| 169 |
ofd->AddExtension = true;
|
169 |
ofd->AddExtension = true;
|
| 170 |
ofd->Title = "Select the archive to export to";
|
170 |
ofd->Title = "Select the archive to export to";
|
| 171 |
if ( ofd->ShowDialog(this) == Windows::Forms::DialogResult::OK )
|
171 |
if ( ofd->ShowDialog(this) == Windows::Forms::DialogResult::OK )
|