mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12:00
cellGameGetBootGameInfo
This commit is contained in:
parent
8fb2d04ce8
commit
d84a0c6503
3 changed files with 78 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue