From ec19e9738e55ea64a419e0fb55a2510c8f79e126 Mon Sep 17 00:00:00 2001 From: "avihal@gmail.com" Date: Mon, 21 Mar 2011 22:48:20 +0000 Subject: [PATCH] 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 --- pcsx2/gui/Panels/MemoryCardListPanel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcsx2/gui/Panels/MemoryCardListPanel.cpp b/pcsx2/gui/Panels/MemoryCardListPanel.cpp index 2166ca389f..f57637ad2a 100644 --- a/pcsx2/gui/Panels/MemoryCardListPanel.cpp +++ b/pcsx2/gui/Panels/MemoryCardListPanel.cpp @@ -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;