mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 11:18:36 +12:00
shared_ptr.hpp: implement make_single_value(), make_shared_value()
A function that constructs single_ptr from its argument. Type can be deduced from the argument (unlike make_single).
This commit is contained in:
parent
e34c956196
commit
b704cc8375
2 changed files with 17 additions and 3 deletions
|
@ -786,12 +786,12 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool
|
|||
return game_boot_result::no_errors;
|
||||
}
|
||||
|
||||
// Check if path is inside the specified directory
|
||||
// Check if path is inside the specified directory
|
||||
auto is_path_inside_path = [this](std::string_view path, std::string_view dir)
|
||||
{
|
||||
return (GetCallbacks().resolve_path(path) + '/').starts_with(GetCallbacks().resolve_path(dir) + '/');
|
||||
};
|
||||
|
||||
|
||||
// Detect boot location
|
||||
constexpr usz game_dir_size = 8; // size of PS3_GAME and PS3_GMXX
|
||||
const std::string hdd0_game = vfs::get("/dev_hdd0/game/");
|
||||
|
@ -1222,7 +1222,7 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool
|
|||
|
||||
sys_log.notice("Elf path: %s", argv[0]);
|
||||
}
|
||||
|
||||
|
||||
if (!argv[0].starts_with("/dev_hdd0/game"sv) && m_cat == "HG"sv)
|
||||
{
|
||||
sys_log.error("Booting HG category outside of HDD0!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue