drag and dropperinno (#3037)

This commit is contained in:
Megamouse 2017-08-06 21:29:28 +02:00 committed by Ivan
parent 7b27a8e993
commit f3ad922a8f
6 changed files with 282 additions and 42 deletions

View file

@ -229,7 +229,7 @@ void Emulator::SetPath(const std::string& path, const std::string& elf_path)
m_elf_path = elf_path;
}
bool Emulator::BootGame(const std::string& path, bool direct)
bool Emulator::BootGame(const std::string& path, bool direct, bool add_only)
{
static const char* boot_list[] =
{
@ -242,7 +242,7 @@ bool Emulator::BootGame(const std::string& path, bool direct)
if (direct && fs::is_file(path))
{
SetPath(path);
Load();
Load(add_only);
return true;
}
@ -254,7 +254,7 @@ bool Emulator::BootGame(const std::string& path, bool direct)
if (fs::is_file(elf))
{
SetPath(elf);
Load();
Load(add_only);
return true;
}
@ -279,7 +279,7 @@ std::string Emulator::GetLibDir()
return fmt::replace_all(g_cfg.vfs.dev_flash, "$(EmulatorDir)", emu_dir) + "sys/external/";
}
void Emulator::Load()
void Emulator::Load(bool add_only)
{
Stop();
@ -442,6 +442,12 @@ void Emulator::Load()
return;
}
if (add_only)
{
LOG_NOTICE(LOADER, "Finished to add data to games.yml by boot for: %s", m_path);
return;
}
// Check game updates
const std::string hdd0_boot = hdd0_game + m_title_id + "/USRDIR/EBOOT.BIN";