Line 269... |
Line 269... |
269 |
ofd->FilterIndex = 1;
|
269 |
ofd->FilterIndex = 1;
|
270 |
ofd->RestoreDirectory = true;
|
270 |
ofd->RestoreDirectory = true;
|
271 |
if ( ofd->ShowDialog() == System::Windows::Forms::DialogResult::OK )
|
271 |
if ( ofd->ShowDialog() == System::Windows::Forms::DialogResult::OK )
|
272 |
{
|
272 |
{
|
273 |
this->SaveMasks();
|
273 |
this->SaveMasks();
|
274 |
if ( m_pLoadedShip->writeFile(_S(ofd->FileName)) )
|
274 |
if ( m_pLoadedShip->writeFile(_WS(ofd->FileName)) )
|
275 |
{
|
275 |
{
|
276 |
MessageBox::Show(this, "Ship File: " + ofd->FileName + "\n\nHas been written", "Ship Saved", MessageBoxButtons::OK, MessageBoxIcon::Information);
|
276 |
MessageBox::Show(this, "Ship File: " + ofd->FileName + "\n\nHas been written", "Ship Saved", MessageBoxButtons::OK, MessageBoxIcon::Information);
|
277 |
m_bChanged = false;
|
277 |
m_bChanged = false;
|
278 |
}
|
278 |
}
|
279 |
}
|
279 |
}
|
Line 681... |
Line 681... |
681 |
{
|
681 |
{
|
682 |
FolderBrowserDialog ^fbd = gcnew FolderBrowserDialog;
|
682 |
FolderBrowserDialog ^fbd = gcnew FolderBrowserDialog;
|
683 |
fbd->Description = "Select the path for " + _US(exe->sName);
|
683 |
fbd->Description = "Select the path for " + _US(exe->sName);
|
684 |
if ( fbd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
|
684 |
if ( fbd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
|
685 |
{
|
685 |
{
|
686 |
CDirIO Dir(_S(fbd->SelectedPath));
|
686 |
CDirIO Dir(_WS(fbd->SelectedPath));
|
687 |
if ( !Dir.exists(exe->sExe) )
|
687 |
if ( !Dir.exists(exe->sExe) )
|
688 |
MessageBox::Show(this, "Unable to find " + _US(exe->sExe) + " in " + fbd->SelectedPath, "Game Directory", MessageBoxButtons::OK, MessageBoxIcon::Warning);
|
688 |
MessageBox::Show(this, "Unable to find " + _US(exe->sExe) + " in " + fbd->SelectedPath, "Game Directory", MessageBoxButtons::OK, MessageBoxIcon::Warning);
|
689 |
else
|
689 |
else
|
690 |
m_pDirList->pushBack(_WS(fbd->SelectedPath), Utils::WString::Number(i));
|
690 |
m_pDirList->pushBack(_WS(fbd->SelectedPath), Utils::WString::Number(i));
|
691 |
}
|
691 |
}
|
Line 818... |
Line 818... |
818 |
void Event_ChangeDirectory(System::Object ^sender, System::EventArgs ^E)
|
818 |
void Event_ChangeDirectory(System::Object ^sender, System::EventArgs ^E)
|
819 |
{
|
819 |
{
|
820 |
System::Windows::Forms::ToolStripMenuItem ^item = cli::safe_cast<System::Windows::Forms::ToolStripMenuItem ^>(sender);
|
820 |
System::Windows::Forms::ToolStripMenuItem ^item = cli::safe_cast<System::Windows::Forms::ToolStripMenuItem ^>(sender);
|
821 |
if ( item )
|
821 |
if ( item )
|
822 |
{
|
822 |
{
|
823 |
Utils::WString tag = _S(cli::safe_cast<System::String ^>(item->Tag));
|
823 |
Utils::WString tag = _WS(cli::safe_cast<System::String ^>(item->Tag));
|
824 |
Utils::WString game = tag.token(L" ", 1);
|
824 |
Utils::WString game = tag.token(L" ", 1);
|
825 |
if ( m_pDirList->containsData(game) )
|
825 |
if ( m_pDirList->containsData(game) )
|
826 |
{
|
826 |
{
|
827 |
FolderBrowserDialog ^fbd = gcnew FolderBrowserDialog;
|
827 |
FolderBrowserDialog ^fbd = gcnew FolderBrowserDialog;
|
828 |
fbd->Description = "Select the path for " + _US(tag.tokens(L" ", 2));
|
828 |
fbd->Description = "Select the path for " + _US(tag.tokens(L" ", 2));
|