summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar David Marcec2019-01-04 13:22:25 +1100
committerGravatar David Marcec2019-01-04 13:22:25 +1100
commit48a526dba17aad4b26135014f7a2931b5706809a (patch)
treebc5c599e5caf28d4d76194fe01c847741073aad0
parentMerge pull request #1724 from FearlessTobi/port-4412 (diff)
downloadyuzu-48a526dba17aad4b26135014f7a2931b5706809a.tar.gz
yuzu-48a526dba17aad4b26135014f7a2931b5706809a.tar.xz
yuzu-48a526dba17aad4b26135014f7a2931b5706809a.zip
Return no application area when games try to open an application area
This will prompt CreateApplicationArea
-rw-r--r--src/core/hle/service/nfp/nfp.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/nfp/nfp.cpp b/src/core/hle/service/nfp/nfp.cpp
index 2254fb46b..1c4482e47 100644
--- a/src/core/hle/service/nfp/nfp.cpp
+++ b/src/core/hle/service/nfp/nfp.cpp
@@ -20,7 +20,8 @@ namespace Service::NFP {
20namespace ErrCodes { 20namespace ErrCodes {
21constexpr ResultCode ERR_TAG_FAILED(ErrorModule::NFP, 21constexpr ResultCode ERR_TAG_FAILED(ErrorModule::NFP,
22 -1); // TODO(ogniK): Find the actual error code 22 -1); // TODO(ogniK): Find the actual error code
23} 23constexpr ResultCode ERR_NO_APPLICATION_AREA(ErrorModule::NFP, 152);
24} // namespace ErrCodes
24 25
25Module::Interface::Interface(std::shared_ptr<Module> module, const char* name) 26Module::Interface::Interface(std::shared_ptr<Module> module, const char* name)
26 : ServiceFramework(name), module(std::move(module)) { 27 : ServiceFramework(name), module(std::move(module)) {
@@ -292,10 +293,9 @@ private:
292 } 293 }
293 294
294 void OpenApplicationArea(Kernel::HLERequestContext& ctx) { 295 void OpenApplicationArea(Kernel::HLERequestContext& ctx) {
295 LOG_DEBUG(Service_NFP, "called"); 296 LOG_WARNING(Service_NFP, "(STUBBED) called");
296 // We don't need to worry about this since we can just open the file
297 IPC::ResponseBuilder rb{ctx, 2}; 297 IPC::ResponseBuilder rb{ctx, 2};
298 rb.Push(RESULT_SUCCESS); 298 rb.Push(ErrCodes::ERR_NO_APPLICATION_AREA);
299 } 299 }
300 300
301 void GetApplicationAreaSize(Kernel::HLERequestContext& ctx) { 301 void GetApplicationAreaSize(Kernel::HLERequestContext& ctx) {