mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
Change the order so selected iso will be first and only then the default iso.
Some other minor cleanup git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4880 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
8fec36b22a
commit
b5b4d92846
@ -74,9 +74,9 @@ protected:
|
||||
bool m_throttle;
|
||||
|
||||
short m_buffer[MAX_SAMPLES * 2];
|
||||
volatile u32 m_numSamples;
|
||||
u32 m_indexW;
|
||||
u32 m_indexR;
|
||||
volatile u32 m_numSamples;
|
||||
|
||||
private:
|
||||
|
||||
|
@ -16,11 +16,6 @@
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
|
||||
// Why doesn't it work on windows?
|
||||
#ifndef _WIN32
|
||||
#include "Common.h"
|
||||
#endif
|
||||
|
||||
#include "Setup.h" // Common
|
||||
|
||||
#if defined(HAVE_SFML) && HAVE_SFML || defined(_WIN32)
|
||||
|
@ -467,12 +467,11 @@ void CFrame::InitBitmaps()
|
||||
|
||||
|
||||
// Menu items
|
||||
// ---------------------
|
||||
|
||||
// Start the game or change the disc.
|
||||
// Boot priority:
|
||||
// 1. Default ISO
|
||||
// 2. Show the game list and boot the selected game.
|
||||
// 1. Show the game list and boot the selected game.
|
||||
// 2. Default ISO
|
||||
// 3. Boot last selected game
|
||||
void CFrame::BootGame()
|
||||
{
|
||||
@ -481,18 +480,18 @@ void CFrame::BootGame()
|
||||
if (Core::GetState() != Core::CORE_UNINITIALIZED)
|
||||
return;
|
||||
|
||||
// Start the selected ISO, or try one of the saved paths.
|
||||
// If all that fails, ask to add a dir and don't boot
|
||||
if (m_GameListCtrl->GetSelectedISO() != NULL)
|
||||
{
|
||||
if (m_GameListCtrl->GetSelectedISO()->IsValid())
|
||||
BootManager::BootCore(m_GameListCtrl->GetSelectedISO()->GetFileName());
|
||||
}
|
||||
else if (!StartUp.m_strDefaultGCM.empty()
|
||||
&& wxFileExists(wxString(StartUp.m_strDefaultGCM.c_str(), wxConvUTF8)))
|
||||
{
|
||||
BootManager::BootCore(StartUp.m_strDefaultGCM);
|
||||
}
|
||||
// Start the selected ISO, or try one of the saved paths.
|
||||
// If all that fails, ask to add a dir and don't boot
|
||||
else if (m_GameListCtrl->GetSelectedISO() != NULL)
|
||||
{
|
||||
if (m_GameListCtrl->GetSelectedISO()->IsValid())
|
||||
BootManager::BootCore(m_GameListCtrl->GetSelectedISO()->GetFileName());
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!SConfig::GetInstance().m_LastFilename.empty()
|
||||
|
@ -777,7 +777,7 @@ void CISOProperties::OnExtractDataFromHeader(wxCommandEvent& event)
|
||||
}
|
||||
|
||||
if (!ret)
|
||||
PanicAlert("Failed to extract to %s!", Path.mb_str());
|
||||
PanicAlert("Failed to extract to %s!", (const char *)Path.mb_str());
|
||||
}
|
||||
|
||||
void CISOProperties::SetRefresh(wxCommandEvent& event)
|
||||
|
Loading…
x
Reference in New Issue
Block a user