Fixed a little crash I had in ISOProperties with Mario Kart Wii, it was trying to read a third unknown partition type.
Effectively toggling throttle in DSP HLE/LLE when the game is running git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3096 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
989f4fb6da
commit
adb791dd58
|
@ -166,6 +166,8 @@ bool CFileSystemGCWii::InitFileSystem()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// Mario Kart Wii gets here on its third partition...
|
||||||
|
// Does it use a fake partition ? another type we don't know ?
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -71,9 +71,11 @@ CISOProperties::CISOProperties(const std::string fileName, wxWindow* parent, wxW
|
||||||
WiiPartition temp;
|
WiiPartition temp;
|
||||||
if ((temp.Partition = DiscIO::CreateVolumeFromFilename(fileName, i)) != NULL)
|
if ((temp.Partition = DiscIO::CreateVolumeFromFilename(fileName, i)) != NULL)
|
||||||
{
|
{
|
||||||
temp.FileSystem = DiscIO::CreateFileSystem(temp.Partition);
|
if ((temp.FileSystem = DiscIO::CreateFileSystem(temp.Partition)) != NULL)
|
||||||
temp.FileSystem->GetFileList(temp.Files);
|
{
|
||||||
WiiDisc.push_back(temp);
|
temp.FileSystem->GetFileList(temp.Files);
|
||||||
|
WiiDisc.push_back(temp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -97,6 +97,9 @@ void ConfigDialog::SettingsChanged(wxCommandEvent& event)
|
||||||
g_Config.m_EnableHLEAudio = m_buttonEnableHLEAudio->GetValue();
|
g_Config.m_EnableHLEAudio = m_buttonEnableHLEAudio->GetValue();
|
||||||
ac_Config.m_EnableDTKMusic = m_buttonEnableDTKMusic->GetValue();
|
ac_Config.m_EnableDTKMusic = m_buttonEnableDTKMusic->GetValue();
|
||||||
ac_Config.m_EnableThrottle = m_buttonEnableThrottle->GetValue();
|
ac_Config.m_EnableThrottle = m_buttonEnableThrottle->GetValue();
|
||||||
|
if (soundStream != NULL)
|
||||||
|
soundStream->GetMixer()->SetThrottle(ac_Config.m_EnableThrottle);
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
strncpy(ac_Config.sBackend, m_BackendSelection->GetValue().mb_str(), 128);
|
strncpy(ac_Config.sBackend, m_BackendSelection->GetValue().mb_str(), 128);
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -91,6 +91,9 @@ void DSPConfigDialogLLE::SettingsChanged(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
ac_Config.m_EnableDTKMusic = m_buttonEnableDTKMusic->GetValue();
|
ac_Config.m_EnableDTKMusic = m_buttonEnableDTKMusic->GetValue();
|
||||||
ac_Config.m_EnableThrottle = m_buttonEnableThrottle->GetValue();
|
ac_Config.m_EnableThrottle = m_buttonEnableThrottle->GetValue();
|
||||||
|
if (soundStream != NULL)
|
||||||
|
soundStream->GetMixer()->SetThrottle(ac_Config.m_EnableThrottle);
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
strncpy(ac_Config.sBackend, m_BackendSelection->GetValue().mb_str(), 128);
|
strncpy(ac_Config.sBackend, m_BackendSelection->GetValue().mb_str(), 128);
|
||||||
#else
|
#else
|
||||||
|
@ -99,7 +102,6 @@ void DSPConfigDialogLLE::SettingsChanged(wxCommandEvent& event)
|
||||||
ac_Config.Update();
|
ac_Config.Update();
|
||||||
g_Config.Save();
|
g_Config.Save();
|
||||||
|
|
||||||
|
|
||||||
if (event.GetId() == wxID_OK)
|
if (event.GetId() == wxID_OK)
|
||||||
EndModal(wxID_OK);
|
EndModal(wxID_OK);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue