mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-02 07:36:34 +00:00
Convert Dolphin.Core.DefaultISO to use new-style config
This commit is contained in:
parent
3d1a7737d8
commit
e7cbee235c
6 changed files with 12 additions and 9 deletions
|
@ -31,6 +31,7 @@
|
|||
#include "Core/Boot/DolReader.h"
|
||||
#include "Core/Boot/ElfReader.h"
|
||||
#include "Core/CommonTitles.h"
|
||||
#include "Core/Config/MainSettings.h"
|
||||
#include "Core/Config/SYSCONFSettings.h"
|
||||
#include "Core/ConfigManager.h"
|
||||
#include "Core/FifoPlayer/FifoPlayer.h"
|
||||
|
@ -291,9 +292,9 @@ bool CBoot::Load_BS2(const std::string& boot_rom_filename)
|
|||
|
||||
static void SetDefaultDisc()
|
||||
{
|
||||
const SConfig& config = SConfig::GetInstance();
|
||||
if (!config.m_strDefaultISO.empty())
|
||||
SetDisc(DiscIO::CreateVolumeFromFilename(config.m_strDefaultISO));
|
||||
const std::string default_iso = Config::Get(Config::MAIN_DEFAULT_ISO);
|
||||
if (!default_iso.empty())
|
||||
SetDisc(DiscIO::CreateVolumeFromFilename(default_iso));
|
||||
}
|
||||
|
||||
static void CopyDefaultExceptionHandlers()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue