cellGameGetBootGameInfo

This commit is contained in:
Megamouse 2022-04-09 23:28:52 +02:00
parent 8fb2d04ce8
commit d84a0c6503
3 changed files with 78 additions and 4 deletions

View file

@ -19,6 +19,7 @@
#include "Emu/Cell/lv2/sys_sync.h"
#include "Emu/Cell/lv2/sys_prx.h"
#include "Emu/Cell/lv2/sys_overlay.h"
#include "Emu/Cell/Modules/cellGame.h"
#include "Emu/title.h"
#include "Emu/IdManager.h"
@ -560,6 +561,29 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool
{
const std::string resolved_path = GetCallbacks().resolve_path(m_path);
if (m_config_mode == cfg_mode::continuous)
{
// The program is being booted from another running program
// CELL_GAME_GAMETYPE_GAMEDATA is not used as boot type
if (m_cat == "DG"sv)
{
m_boot_source_type = CELL_GAME_GAMETYPE_DISC;
}
else if (m_cat == "HM"sv)
{
m_boot_source_type = CELL_GAME_GAMETYPE_HOME;
}
else
{
m_boot_source_type = CELL_GAME_GAMETYPE_HDD;
}
}
else
{
m_boot_source_type = CELL_GAME_GAMETYPE_SYS;
}
if (!IsStopped())
{
Kill();