mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
Remove all tab/space mismatches from the DolphinWX project (at least 99%. I promise!)
Also fix up the dangling else's. Shit just looks incredibly ugly in terms of actual structure in the code. I took the liberty of adding comments in FifoPlayerDlg.cpp, LogConfigWindow.cpp, LogWindow.cpp, and FrameAui.cpp to better explain some things. If any comments are wrong, don't hesitate to complain.
This commit is contained in:
@ -466,7 +466,7 @@ bool CMemcardManager::CopyDeleteSwitch(u32 error, int slot)
|
||||
break;
|
||||
case DELETE_FAIL:
|
||||
PanicAlertT("Order of files in the File Directory do not match the block order\n"
|
||||
"Right click and export all of the saves,\nand import the the saves to a new memcard\n");
|
||||
"Right click and export all of the saves,\nand import the saves to a new memcard\n");
|
||||
break;
|
||||
default:
|
||||
PanicAlert(E_UNK);
|
||||
@ -508,7 +508,10 @@ void CMemcardManager::CopyDeleteClick(wxCommandEvent& event)
|
||||
{
|
||||
SuccessAlertT("The checksum was successfully fixed");
|
||||
}
|
||||
else PanicAlert(E_SAVEFAILED);
|
||||
else
|
||||
{
|
||||
PanicAlert(E_SAVEFAILED);
|
||||
}
|
||||
break;
|
||||
case ID_CONVERTTOGCI:
|
||||
fileName2 = "convert";
|
||||
@ -533,7 +536,10 @@ void CMemcardManager::CopyDeleteClick(wxCommandEvent& event)
|
||||
wxEmptyString, wxEmptyString, wxT(".gci"),
|
||||
_("GCI File(*.gci)") + wxString(_T("|*.gci")),
|
||||
wxFD_OVERWRITE_PROMPT|wxFD_SAVE, this);
|
||||
if (temp2.empty()) break;
|
||||
|
||||
if (temp2.empty())
|
||||
break;
|
||||
|
||||
fileName2 = WxStrToStr(temp2);
|
||||
}
|
||||
if (fileName.length() > 0)
|
||||
@ -610,7 +616,8 @@ bool CMemcardManager::ReloadMemcard(const char *fileName, int card)
|
||||
// TODO: add error checking and animate icons
|
||||
memoryCard[card] = new GCMemcard(fileName);
|
||||
|
||||
if (!memoryCard[card]->IsValid()) return false;
|
||||
if (!memoryCard[card]->IsValid())
|
||||
return false;
|
||||
|
||||
int j;
|
||||
|
||||
@ -671,7 +678,10 @@ bool CMemcardManager::ReloadMemcard(const char *fileName, int card)
|
||||
{
|
||||
memset(pxdata,0,96*32*4);
|
||||
int frames=3;
|
||||
if (numFrames<frames) frames=numFrames;
|
||||
|
||||
if (numFrames<frames)
|
||||
frames=numFrames;
|
||||
|
||||
for (int f=0;f<frames;f++)
|
||||
{
|
||||
for (int y=0;y<32;y++)
|
||||
@ -714,7 +724,10 @@ bool CMemcardManager::ReloadMemcard(const char *fileName, int card)
|
||||
m_MemcardList[card]->SetItem(index, COLUMN_COMMENT, wxComment);
|
||||
|
||||
blocks = memoryCard[card]->DEntry_BlockCount(fileIndex);
|
||||
if (blocks == 0xFFFF) blocks = 0;
|
||||
|
||||
if (blocks == 0xFFFF)
|
||||
blocks = 0;
|
||||
|
||||
wxBlock.Printf(wxT("%10d"), blocks);
|
||||
m_MemcardList[card]->SetItem(index,COLUMN_BLOCKS, wxBlock);
|
||||
firstblock = memoryCard[card]->DEntry_FirstBlock(fileIndex);
|
||||
@ -801,7 +814,7 @@ void CMemcardManager::CMemcardListCtrl::OnRightClick(wxMouseEvent& event)
|
||||
popupMenu->Append(ID_NEXTPAGE_A + slot, _("Next Page"));
|
||||
popupMenu->Append(ID_MEMCARDPATH_A + slot, wxString::Format(_("Set as default Memcard %c"), 'A' + slot));
|
||||
popupMenu->AppendCheckItem(ID_USEPAGES, _("Enable pages"));
|
||||
|
||||
|
||||
popupMenu->FindItem(ID_PREVPAGE_A + slot)->Enable(prevPage && __mcmSettings.usePages);
|
||||
popupMenu->FindItem(ID_NEXTPAGE_A + slot)->Enable(nextPage && __mcmSettings.usePages);
|
||||
popupMenu->FindItem(ID_USEPAGES)->Check(__mcmSettings.usePages);
|
||||
|
Reference in New Issue
Block a user