Subversion Repositories spk

Rev

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

Rev 50 Rev 58
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 )