1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-18 01:46:47 +00:00

ncm: fix destructor availability

This commit is contained in:
Michael Scire 2021-09-19 11:00:57 -07:00
parent 3dc51e164f
commit 155f158197
2 changed files with 7 additions and 4 deletions

View file

@ -40,7 +40,6 @@ namespace ams::ncm {
} }
public: public:
HostContentStorageImpl(RegisteredHostContent *registered_content) : registered_content(registered_content), disabled(false) { /* ... */ } HostContentStorageImpl(RegisteredHostContent *registered_content) : registered_content(registered_content), disabled(false) { /* ... */ }
~HostContentStorageImpl();
public: public:
/* Actual commands. */ /* Actual commands. */
virtual Result GeneratePlaceHolderId(sf::Out<PlaceHolderId> out); virtual Result GeneratePlaceHolderId(sf::Out<PlaceHolderId> out);

View file

@ -16,7 +16,7 @@
#include <stratosphere.hpp> #include <stratosphere.hpp>
namespace ams::ncm { namespace ams::ncm {
class RegisteredHostContent::RegisteredPath : public util::IntrusiveListBaseNode<RegisteredPath> { class RegisteredHostContent::RegisteredPath : public util::IntrusiveListBaseNode<RegisteredPath> {
NON_COPYABLE(RegisteredPath); NON_COPYABLE(RegisteredPath);
NON_MOVEABLE(RegisteredPath); NON_MOVEABLE(RegisteredPath);
@ -24,8 +24,8 @@ namespace ams::ncm {
ContentId content_id; ContentId content_id;
Path path; Path path;
public: public:
RegisteredPath(const ncm::ContentId &content_id, const Path &p) : content_id(content_id), path(p) { RegisteredPath(const ncm::ContentId &content_id, const Path &p) : content_id(content_id), path(p) {
/* ... */ /* ... */
} }
ncm::ContentId GetContentId() const { ncm::ContentId GetContentId() const {
@ -41,6 +41,10 @@ namespace ams::ncm {
} }
}; };
RegisteredHostContent::~RegisteredHostContent() {
/* ... */
}
Result RegisteredHostContent::RegisterPath(const ncm::ContentId &content_id, const ncm::Path &path) { Result RegisteredHostContent::RegisterPath(const ncm::ContentId &content_id, const ncm::Path &path) {
std::scoped_lock lk(this->mutex); std::scoped_lock lk(this->mutex);