mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-30 15:02:42 +02:00
fs/sprof/build: fix minor issues
This commit is contained in:
parent
396a63e5bb
commit
d2163e1546
@ -134,7 +134,7 @@ namespace ams::fs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Create a file storage for the program's package. */
|
/* Create a file storage for the program's package. */
|
||||||
auto package_storage = std::make_shared<FileStorage>(std::move(package_file));
|
auto package_storage = fs::AllocateShared<FileStorage>(std::move(package_file));
|
||||||
R_UNLESS(package_storage != nullptr, fs::ResultAllocationMemoryFailedInCodeA());
|
R_UNLESS(package_storage != nullptr, fs::ResultAllocationMemoryFailedInCodeA());
|
||||||
|
|
||||||
/* Create a partition filesystem. */
|
/* Create a partition filesystem. */
|
||||||
@ -177,7 +177,7 @@ namespace ams::fs {
|
|||||||
R_TRY(fsp->OpenSdCardFileSystem(std::addressof(fs)));
|
R_TRY(fsp->OpenSdCardFileSystem(std::addressof(fs)));
|
||||||
|
|
||||||
/* Allocate a new filesystem wrapper. */
|
/* Allocate a new filesystem wrapper. */
|
||||||
auto fsa = std::make_shared<impl::FileSystemServiceObjectAdapter>(std::move(fs));
|
auto fsa = fs::AllocateShared<impl::FileSystemServiceObjectAdapter>(std::move(fs));
|
||||||
R_UNLESS(fsa != nullptr, fs::ResultAllocationMemoryFailedInCodeA());
|
R_UNLESS(fsa != nullptr, fs::ResultAllocationMemoryFailedInCodeA());
|
||||||
|
|
||||||
*out = std::move(fsa);
|
*out = std::move(fsa);
|
||||||
|
@ -79,7 +79,7 @@ namespace ams::fs {
|
|||||||
R_TRY(fsp->OpenSdCardFileSystem(std::addressof(fs)));
|
R_TRY(fsp->OpenSdCardFileSystem(std::addressof(fs)));
|
||||||
|
|
||||||
/* Allocate a new filesystem wrapper. */
|
/* Allocate a new filesystem wrapper. */
|
||||||
auto fsa = std::make_shared<impl::FileSystemServiceObjectAdapter>(std::move(fs));
|
auto fsa = fs::AllocateShared<impl::FileSystemServiceObjectAdapter>(std::move(fs));
|
||||||
R_UNLESS(fsa != nullptr, fs::ResultAllocationMemoryFailedInSdCardA());
|
R_UNLESS(fsa != nullptr, fs::ResultAllocationMemoryFailedInSdCardA());
|
||||||
|
|
||||||
/* Ensure that the error report directory exists. */
|
/* Ensure that the error report directory exists. */
|
||||||
|
@ -24,7 +24,7 @@ namespace ams::sprofile::srv {
|
|||||||
sf::SharedPointer<::ams::sprofile::srv::ISprofileServiceForBgAgent> m_service_for_bg_agent;
|
sf::SharedPointer<::ams::sprofile::srv::ISprofileServiceForBgAgent> m_service_for_bg_agent;
|
||||||
sf::SharedPointer<::ams::sprofile::srv::ISprofileServiceForSystemProcess> m_service_for_system_process;
|
sf::SharedPointer<::ams::sprofile::srv::ISprofileServiceForSystemProcess> m_service_for_system_process;
|
||||||
public:
|
public:
|
||||||
constexpr ServiceGetter(sf::SharedPointer<::ams::sprofile::srv::ISprofileServiceForBgAgent> &&bg, sf::SharedPointer<::ams::sprofile::srv::ISprofileServiceForSystemProcess> &&sp) : m_service_for_bg_agent(bg), m_service_for_system_process(sp) { /* ... */ }
|
constexpr ServiceGetter(sf::SharedPointer<::ams::sprofile::srv::ISprofileServiceForBgAgent> bg, sf::SharedPointer<::ams::sprofile::srv::ISprofileServiceForSystemProcess> sp) : m_service_for_bg_agent(bg), m_service_for_system_process(sp) { /* ... */ }
|
||||||
public:
|
public:
|
||||||
Result GetServiceForSystemProcess(sf::Out<sf::SharedPointer<sprofile::srv::ISprofileServiceForSystemProcess>> out);
|
Result GetServiceForSystemProcess(sf::Out<sf::SharedPointer<sprofile::srv::ISprofileServiceForSystemProcess>> out);
|
||||||
Result GetServiceForBgAgent(sf::Out<sf::SharedPointer<sprofile::srv::ISprofileServiceForBgAgent>> out);
|
Result GetServiceForBgAgent(sf::Out<sf::SharedPointer<sprofile::srv::ISprofileServiceForBgAgent>> out);
|
||||||
|
Loading…
Reference in New Issue
Block a user