Merge pull request #2922 from aserna3/SDBlock

Implemented ability to block writes to the SD card
This commit is contained in:
Scott Mansell 2015-08-31 04:51:50 +12:00
commit 368867dba0
7 changed files with 8 additions and 8 deletions

View File

@ -242,7 +242,7 @@ bool BootCore(const std::string& _rFilename)
{ {
StartUp.bCPUThread = g_NetPlaySettings.m_CPUthread; StartUp.bCPUThread = g_NetPlaySettings.m_CPUthread;
StartUp.bDSPHLE = g_NetPlaySettings.m_DSPHLE; StartUp.bDSPHLE = g_NetPlaySettings.m_DSPHLE;
StartUp.bEnableMemcardSaving = g_NetPlaySettings.m_WriteToMemcard; StartUp.bEnableMemcardSdWriting = g_NetPlaySettings.m_WriteToMemcard;
StartUp.iCPUCore = g_NetPlaySettings.m_CPUcore; StartUp.iCPUCore = g_NetPlaySettings.m_CPUcore;
StartUp.SelectedLanguage = g_NetPlaySettings.m_SelectedLanguage; StartUp.SelectedLanguage = g_NetPlaySettings.m_SelectedLanguage;
StartUp.bOverrideGCLanguage = g_NetPlaySettings.m_OverrideGCLanguage; StartUp.bOverrideGCLanguage = g_NetPlaySettings.m_OverrideGCLanguage;

View File

@ -39,7 +39,7 @@ SConfig::SConfig()
bCPUThread(true), bDSPThread(false), bDSPHLE(true), bCPUThread(true), bDSPThread(false), bDSPHLE(true),
bSkipIdle(true), bSyncGPUOnSkipIdleHack(true), bNTSC(false), bForceNTSCJ(false), bSkipIdle(true), bSyncGPUOnSkipIdleHack(true), bNTSC(false), bForceNTSCJ(false),
bHLE_BS2(true), bEnableCheats(false), bHLE_BS2(true), bEnableCheats(false),
bEnableMemcardSaving(true), bEnableMemcardSdWriting(true),
bDPL2Decoder(false), iLatency(14), bDPL2Decoder(false), iLatency(14),
bRunCompareServer(false), bRunCompareClient(false), bRunCompareServer(false), bRunCompareClient(false),
bMMU(false), bDCBZOFF(false), bMMU(false), bDCBZOFF(false),
@ -605,7 +605,7 @@ void SConfig::LoadDefaults()
iBBDumpPort = -1; iBBDumpPort = -1;
bSyncGPU = false; bSyncGPU = false;
bFastDiscSpeed = false; bFastDiscSpeed = false;
bEnableMemcardSaving = true; bEnableMemcardSdWriting = true;
SelectedLanguage = 0; SelectedLanguage = 0;
bOverrideGCLanguage = false; bOverrideGCLanguage = false;
bWii = false; bWii = false;

View File

@ -87,7 +87,7 @@ struct SConfig : NonCopyable
bool bForceNTSCJ; bool bForceNTSCJ;
bool bHLE_BS2; bool bHLE_BS2;
bool bEnableCheats; bool bEnableCheats;
bool bEnableMemcardSaving; bool bEnableMemcardSdWriting;
bool bDPL2Decoder; bool bDPL2Decoder;
int iLatency; int iLatency;

View File

@ -186,7 +186,7 @@ GCMemcardDirectory::GCMemcardDirectory(const std::string& directory, int slot, u
void GCMemcardDirectory::FlushThread() void GCMemcardDirectory::FlushThread()
{ {
if (!SConfig::GetInstance().bEnableMemcardSaving) if (!SConfig::GetInstance().bEnableMemcardSdWriting)
{ {
return; return;
} }

View File

@ -63,7 +63,7 @@ MemoryCard::~MemoryCard()
void MemoryCard::FlushThread() void MemoryCard::FlushThread()
{ {
if (!SConfig::GetInstance().bEnableMemcardSaving) if (!SConfig::GetInstance().bEnableMemcardSdWriting)
{ {
return; return;
} }

View File

@ -423,7 +423,7 @@ u32 CWII_IPC_HLE_Device_sdio_slot0::ExecuteCommand(u32 _BufferIn, u32 _BufferInS
DEBUG_LOG(WII_IPC_SD, "%sWrite %i Block(s) from 0x%08x bsize %i to offset 0x%08x!", DEBUG_LOG(WII_IPC_SD, "%sWrite %i Block(s) from 0x%08x bsize %i to offset 0x%08x!",
req.isDMA ? "DMA " : "", req.blocks, req.addr, req.bsize, req.arg); req.isDMA ? "DMA " : "", req.blocks, req.addr, req.bsize, req.arg);
if (m_Card) if (m_Card && SConfig::GetInstance().bEnableMemcardSdWriting)
{ {
u32 size = req.bsize * req.blocks; u32 size = req.bsize * req.blocks;

View File

@ -202,7 +202,7 @@ NetPlayDialog::NetPlayDialog(wxWindow* const parent, const CGameListCtrl* const
padbuf_spin->Bind(wxEVT_SPINCTRL, &NetPlayDialog::OnAdjustBuffer, this); padbuf_spin->Bind(wxEVT_SPINCTRL, &NetPlayDialog::OnAdjustBuffer, this);
bottom_szr->Add(padbuf_spin, 0, wxCENTER); bottom_szr->Add(padbuf_spin, 0, wxCENTER);
m_memcard_write = new wxCheckBox(panel, wxID_ANY, _("Write memcards (GC)")); m_memcard_write = new wxCheckBox(panel, wxID_ANY, _("Write memcards/SD"));
bottom_szr->Add(m_memcard_write, 0, wxCENTER); bottom_szr->Add(m_memcard_write, 0, wxCENTER);
} }