MCD manager: console print fix when creating a card without assigning it to a slot.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4467 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
avihal@gmail.com 2011-03-21 22:48:20 +00:00
parent b5aad0ea06
commit ec19e9738e
1 changed files with 4 additions and 1 deletions

View File

@ -690,7 +690,10 @@ void Panels::MemoryCardListPanel_Simple::UiCreateNewCard( McdSlotItem& card )
card.IsEnabled = true;
card.Filename = dialog.result_createdMcdFilename;
card.IsPresent = true;
Console.WriteLn(L"setting new card to slot %u: '%s'", card.Slot, card.Filename.GetFullName().c_str());
if ( card.Slot >= 0)
Console.WriteLn(L"setting new card to slot %u: '%s'", card.Slot, card.Filename.GetFullName().c_str());
else
Console.WriteLn(L"Created a new unassigned card file: '%s'", card.Filename.GetFullName().c_str() );
}
else
card.IsEnabled=false;