diff options
author | Lioncash <mathew1800@gmail.com> | 2019-04-01 22:46:00 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-04-01 22:49:28 +0200 |
commit | d09e98f566e6c0c6363bc881c4f40e50a9de3ff8 (patch) | |
tree | 84c668276510fe0301950f84a782902c7673e662 /src/core/hle/kernel/resource_limit.cpp | |
parent | Merge pull request #2301 from FearlessTobi/remove-amiibo-setting (diff) | |
download | yuzu-d09e98f566e6c0c6363bc881c4f40e50a9de3ff8.tar yuzu-d09e98f566e6c0c6363bc881c4f40e50a9de3ff8.tar.gz yuzu-d09e98f566e6c0c6363bc881c4f40e50a9de3ff8.tar.bz2 yuzu-d09e98f566e6c0c6363bc881c4f40e50a9de3ff8.tar.lz yuzu-d09e98f566e6c0c6363bc881c4f40e50a9de3ff8.tar.xz yuzu-d09e98f566e6c0c6363bc881c4f40e50a9de3ff8.tar.zst yuzu-d09e98f566e6c0c6363bc881c4f40e50a9de3ff8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/resource_limit.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/hle/kernel/resource_limit.cpp b/src/core/hle/kernel/resource_limit.cpp index 2f9695005..173f69915 100644 --- a/src/core/hle/kernel/resource_limit.cpp +++ b/src/core/hle/kernel/resource_limit.cpp @@ -16,11 +16,8 @@ constexpr std::size_t ResourceTypeToIndex(ResourceType type) { ResourceLimit::ResourceLimit(KernelCore& kernel) : Object{kernel} {} ResourceLimit::~ResourceLimit() = default; -SharedPtr<ResourceLimit> ResourceLimit::Create(KernelCore& kernel, std::string name) { - SharedPtr<ResourceLimit> resource_limit(new ResourceLimit(kernel)); - - resource_limit->name = std::move(name); - return resource_limit; +SharedPtr<ResourceLimit> ResourceLimit::Create(KernelCore& kernel) { + return new ResourceLimit(kernel); } s64 ResourceLimit::GetCurrentResourceValue(ResourceType resource) const { |