aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/glue/glue_manager.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-08-09 21:24:31 -0700
committerGitHub <noreply@github.com>2023-08-09 21:24:31 -0700
commit9d3a293a4ea17b60146c10e7561c0fd1219fd6c1 (patch)
treeb69936f3e53ee675de0ca21a1dffabd7e71acae0 /src/core/hle/service/glue/glue_manager.cpp
parent3d6ce9dd2b5bad115b295fb7092abc5c30a34448 (diff)
parent1e394c6cdf1ab83c83477c19c0e736a95b86e8da (diff)
Merge pull request #11093 from liamwhite/result-ergonomics
core: remove ResultVal type
Diffstat (limited to 'src/core/hle/service/glue/glue_manager.cpp')
-rw-r--r--src/core/hle/service/glue/glue_manager.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/hle/service/glue/glue_manager.cpp b/src/core/hle/service/glue/glue_manager.cpp
index 4bf67921b..22f001704 100644
--- a/src/core/hle/service/glue/glue_manager.cpp
+++ b/src/core/hle/service/glue/glue_manager.cpp
@@ -15,7 +15,8 @@ ARPManager::ARPManager() = default;
ARPManager::~ARPManager() = default;
-ResultVal<ApplicationLaunchProperty> ARPManager::GetLaunchProperty(u64 title_id) const {
+Result ARPManager::GetLaunchProperty(ApplicationLaunchProperty* out_launch_property,
+ u64 title_id) const {
if (title_id == 0) {
return Glue::ResultInvalidProcessId;
}
@@ -25,10 +26,11 @@ ResultVal<ApplicationLaunchProperty> ARPManager::GetLaunchProperty(u64 title_id)
return Glue::ResultProcessIdNotRegistered;
}
- return iter->second.launch;
+ *out_launch_property = iter->second.launch;
+ return ResultSuccess;
}
-ResultVal<std::vector<u8>> ARPManager::GetControlProperty(u64 title_id) const {
+Result ARPManager::GetControlProperty(std::vector<u8>* out_control_property, u64 title_id) const {
if (title_id == 0) {
return Glue::ResultInvalidProcessId;
}
@@ -38,7 +40,8 @@ ResultVal<std::vector<u8>> ARPManager::GetControlProperty(u64 title_id) const {
return Glue::ResultProcessIdNotRegistered;
}
- return iter->second.control;
+ *out_control_property = iter->second.control;
+ return ResultSuccess;
}
Result ARPManager::Register(u64 title_id, ApplicationLaunchProperty launch,