Line 123... |
Line 123... |
123 |
ofd->RestoreDirectory = true;
|
123 |
ofd->RestoreDirectory = true;
|
124 |
ofd->AddExtension = true;
|
124 |
ofd->AddExtension = true;
|
125 |
ofd->Title = "Select the archive to export to";
|
125 |
ofd->Title = "Select the archive to export to";
|
126 |
if ( ofd->ShowDialog(this) == Windows::Forms::DialogResult::OK )
|
126 |
if ( ofd->ShowDialog(this) == Windows::Forms::DialogResult::OK )
|
127 |
{
|
127 |
{
|
128 |
if ( m_pPackage->SaveToArchive(CyStringFromSystemString(ofd->FileName), game, m_pP->GetGameExe()) )
|
128 |
if ( m_pPackage->saveToArchive(_S(ofd->FileName), game, m_pP->GetGameExe()) )
|
129 |
MessageBox::Show(this, "Package saved to archive, " + ofd->FileName, "Package Exported", MessageBoxButtons::OK, MessageBoxIcon::Information);
|
129 |
MessageBox::Show(this, "Package saved to archive, " + ofd->FileName, "Package Exported", MessageBoxButtons::OK, MessageBoxIcon::Information);
|
130 |
else
|
130 |
else
|
131 |
MessageBox::Show(this, "Unable to export to archive, " + ofd->FileName, "Export Failed", MessageBoxButtons::OK, MessageBoxIcon::Error);
|
131 |
MessageBox::Show(this, "Unable to export to archive, " + ofd->FileName, "Export Failed", MessageBoxButtons::OK, MessageBoxIcon::Error);
|
132 |
}
|
132 |
}
|
133 |
}
|
133 |
}
|